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 -
Please help me in this.
Thanks,
AryA.
Solved! Go to Solution.
Views
Replies
Total Likes
There are only 2 methods (not counting the Deprecated one) exposed in the WorkFlowSession Class that starts a workflow:
Workflow | startWorkflow(WorkflowModel model, WorkflowData data) Start a new Workflow instance with the given and . |
Workflow | startWorkflow(WorkflowModel model, WorkflowData data, Dictionary<String,String> metaData) Deprecated. It's recommended to use #startWorkflow(WorkflowModel, WorkflowData, Map instead. |
Workflow | startWorkflow(WorkflowModel model, WorkflowData data, Map<String,Object> metaData) Start a new Workflow instance with the given , and meta data . |
Therefore you need a WorkflowModel and data,
In your use case - you need these as input - else it will not work.
Views
Replies
Total Likes
Views
Replies
Total Likes
There are only 2 methods (not counting the Deprecated one) exposed in the WorkFlowSession Class that starts a workflow:
Workflow | startWorkflow(WorkflowModel model, WorkflowData data) Start a new Workflow instance with the given and . |
Workflow | startWorkflow(WorkflowModel model, WorkflowData data, Dictionary<String,String> metaData) Deprecated. It's recommended to use #startWorkflow(WorkflowModel, WorkflowData, Map instead. |
Workflow | startWorkflow(WorkflowModel model, WorkflowData data, Map<String,Object> metaData) Start a new Workflow instance with the given , and meta data . |
Therefore you need a WorkflowModel and data,
In your use case - you need these as input - else it will not work.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies