I have seen a package path was sent as payload path when we want multiple paths as payload.
Now how to create package of multiple paths and send as payload in workflow using java.
I want to trigger a worflow using java with multiple paths as payload. Now how can i create a package of these paths and pass as payload to workflow.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @AliSyed1
When you add multiple payload, it creates a package kind node structure in JCR and replicate content from there.
If you want to achieve same, you need to do exactly the same using java
Hi @AliSyed1
Please check https://experienceleague.adobe.com/en/docs/experience-manager-65/content/implementing/developing/ext...
Sorry for the confusion I want to trigger workflow using java code.
Hi @AliSyed1
When you add multiple payload, it creates a package kind node structure in JCR and replicate content from there.
If you want to achieve same, you need to do exactly the same using java
Hi,
Adding to what @arunpatidar already explained, you would need to:
Create a workflow package as Arun has pointed out.
Start the workflow with the path of the package created in step 1 as the payload. Something like this should work:
WorkflowModel workflowModel = workflowSession.getModel("/var/workflow/models/yourModel");
WorkflowData wfData = workflowSession.newWorkflowData("JCR_PATH", "/path/to/your/wfPackage");
workflowSession.startWorkflow(workflowModel, wfData);
References:
Hope this helps
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies