Skip to main content
Level 4
Oct 16, 2015 2:28 AM UTC
Solved

how to fetch workflow launcher configurations in custom WorkflowProcess execute method?

I have created a new workflow using public class MyProcess implements WorkflowProcess { }

i have overridden 

public void execute(WorkItem item, WorkflowSession session, MetaDataMap args) throws WorkflowException { }

this method and able to get payload when an asset gets uploaded.

However I want to access the workflow launcher configurations(i.e. the folder of DAM assets on which the workflow gets launched) in my java code.

how do i get it , I am not saying about arguments, arguments can be fetched by MetaDataMap args.

can anyone tell me , if possible a couple of lines demonstrating same woul help a lot.

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
WillMc1Accepted solution
Adobe Employee
Oct 16, 2015 2:28 AM UTC

Hi,

Not sure exactly what you're hoping for but in later releases of worklfow you can find out which launcher started a workflow, if it was started by a launcher.  

it is stored in the worklfow metadata with the key "launcherId".

Hope this helps,

Will

2 replies

smacdonald2008
Level 10
Oct 16, 2015 2:28 AM UTC

Looking through the workflow Javadocs - i am not seeing an API that returns this information:

http://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/adobe/granite/workflow/exec/package-summary.html

Looks like its not supported via the Workflow API. 

You may have to get this information using the JCR API - that is -reading the node props. 

I will check with Will

Translate
WillMc1Adobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:28 AM UTC

Hi,

Not sure exactly what you're hoping for but in later releases of worklfow you can find out which launcher started a workflow, if it was started by a launcher.  

it is stored in the worklfow metadata with the key "launcherId".

Hope this helps,

Will

Translate