Workflow Join Activity - Need to force complete

David Carlin
Giga Guru

Hello,

There is an issue with some request items we have in our system. The workflow has a join activity which is stuck in 'Running'. The reason it is stuck in 'Running' is because it has two activities merging into it, but only one or the other will happen each time, not both. Therefore, since both will never join in the workflow is stuck. How do I go about forcing the join activity to move along to the next activity so the workflow will finish?

Here is an image of a workflow:
find_real_file.png

Thanks,

David

1 ACCEPTED SOLUTION

What I ended up doing was running a script to cancel the workflow context for all 199 workflows. I then ran a script to update the Stage to 'Complete' on all the request items since they were set to 'Closed Incomplete' by the cancellation.

View solution in original post

11 REPLIES 11

harishdasari
Tera Guru

Hi David,

In this case, you can remove the Join activity from the workflow, as you stated only one task will be generated not the both.

There is IF activity before the JOIN, which is handling Yes or No.

if it is YES then it is routing for a task and If it is No then it is routing for another task. Then, in this case, there is no necessity for the JOIN activity. You can remove it from workflow and directly make the workflow to route for the next level.

Thank you.

 

Hope this is Helpful.

But how do I move along the workflows already started?

Hi David,

At this point you cannot do anything for the workflows that are already started. You may script to get the list of existing RITM that are open with one task is completed and close the other task so the workflow will continue to its next activity.

you have to write a fix script. But this is just a fix and once you follow the above @harishdasari  response. you won't get this issue in future.

-Vinay.

Hi David,

You can cancel the existing workflows and start the new workflow. Here is the official documentation how to restart new version of workflow.

https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=r_WF-restartWorkflow_GR_B

Thank you.