AEM 6.4 WorkflowStatus Api returning false for running workflow
Hi All,
We are facing an issue with WorkflowStatus api to get current wf status of a resource.
It works fine when we start a workflow and get running status it return true but when we deploy our code again even though workflow still in running condition ,the api returns us as false.
resource.adaptTo(WorkflowStatus.class).IsInRunningWorkflow(true);
This issue only happening if we redeploy our code.
Any idea what can cause this issue ?? What is happening during bundle deployment which makes this api return status as false even though workflow still running ??
Thanks