How to trigger a workflow process programmatically?
Hi Team,
I have written a workflow process (com.mycompany.workflow.MyWorkflowProcess) by implementing com.day.cq.workflow.exec.WorkflowProcess. I have to trigger this workflow process programmatically? The only input I got is the workflow process (i.e. com.mycompany.workflow.MyWorkflowProcess) not even the model of the workflow in which it is used.
My requirement is -
- Author will select the workflow from the drop-down (which is as same as the Process drop-down in the workflow Process Step)
- From the drop-down I will get the symbolic name of the process like com.mycompany.workflow.MyWorkflowProcess.
- I have to trigger this workflow programmatically.
Please help me in this.
Thanks,
AryA.