Hi There,
I have created a custom workflow, which when triggered gets the work done. However even after completion, its status shows running for indefinite time. I have gone through the documentation and it has end process as a last step. I have also tried closing resource resolver and logging out from Workflow session object, but nothing worked.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @bagwanpankaj,
Can you confirm if:
that the "End" step is actually being reached in the workflow path.
Check the workflow model design in CRX/DE (/conf
or /var/workflow/models
) — if the flow conditionally skips the end step or has some custom logic that prevents reaching it, the workflow won’t end.
WorkflowProcess
implementation, ensure you are not blocking the thread or entering an indefinite wait.If you are manually closing:
if (resolver != null && resolver.isLive()) {
resolver.close();
}
if (session != null && session.isLive()) {
session.logout();
}
Sometimes, /var/workflow/instances
might retain entries even after completion.
Check status with:http://localhost:4502/libs/cq/workflow/content/console.html
(use filters: model ID, payload, and status)
Hi @bagwanpankaj ,
Try to complete the workflow step through code as below,
workflowSession.complete(workItem, route);
route you can get it from workflowSession.getRoutes(workItem, false).get(0));
Thanks,
Hi @bagwanpankaj ,
You can check the following points:
Let me know which of these you've already verified, happy to help you narrow it down!
@bagwanpankaj just checking in! Were you able to get this resolved? If one of the replies above helped—whether it completely solved the issue or simply pointed you in the right direction—marking it as accepted can make it much easier for others with the same question to find a solution. And if you found a different way to fix it, sharing your approach would be a great contribution to the community. Your follow-up not only helps close the loop but also ensures others benefit from your experience. Thanks so much for being part of the conversation!
Views
Replies
Total Likes
Views
Likes
Replies