I am trying to complete a workflow step through code in same step workflow processor as below.
workflowSession.complete(workItem, workflowSession.getRoutes(workItem, false).get(0));
here, it throws the exception:
Caused by: com.adobe.granite.workflow.WorkflowException: Unable to retrieve workflow instance: "/var/workflow/instances/...."
AEM version : AEM6.5, this working in AEM6.2
Is there anything need to be configured to WorkflowException?
I tried with system user provided all privileges and added it as a workflow super user but same the issue occurs on completing the workItem.
Please share solution if anyone faced this issue, advance thanks.