Hi,
I had terminated a workflow inside the process of dynamic participant step of the model.
Workflow workflow = wfSession.getWorkflow(workItem.getWorkflow().getId());
wfSession.terminateWorkflow(workflow);
But under the workflow console the status is displayed as RUNNING.
How to terminate it completely?
Or can anyone please let me know how to restrict a user from starting a workflow through code.
Regards,
Swarna