AEM 6.4 WorkflowStatus Api returning false for running workflow

Avatar

Avatar

vipins5188

Avatar

vipins5188

vipins5188

09-12-2018

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

View Entire Topic

Avatar

Avatar

vipins5188

Avatar

vipins5188

vipins5188

10-12-2018

Hi Arun,

i am implementing custom  ResourceStatusProvider to get status of particular resource to show on page,for this i am getting an issue with status so i implementated a servlet just to check what status i am getting.  There i found that Workflow Status is not properly coming. After deploying code status of Workflow is active and its in running condition . I checked the same under /var/workflow/instances