Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Workflow Chaining is not working

Avatar

Former Community Member

Hi,

     As per my use case one workflow has to call another workflow.In first workflow process step(final step of the workflow) i called another workflow by the following method

    arg1.startWorkflow(wm,arg0.getWorkflowData());

   Though I don't have iteration logic in first workflow,second one is getting called multiple times(2 or 3).Please guide me how to resolve this.

    Thanks

 

   Kirithi

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try writing a custom step in AEM that uses Workflow APIs to invoke the 2nd workflow. Then use that step when you want to invoke  the other workflow. This will execute only 1.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Try writing a custom step in AEM that uses Workflow APIs to invoke the 2nd workflow. Then use that step when you want to invoke  the other workflow. This will execute only 1.

Avatar

Former Community Member

Hi,

    I tried in the same way,it is not working.Please find the attachment for reference

    

    

 

   

   Called the method startWorkflow in implementation class.

 

  Thanks!

   Kirithi