Why do workflow Join activities is taking an Incomplete path

Georges_Younes
Tera Contributor

I've been working on a workflow that creates 3 different tasks:

 

Although all tasks have state closed complete the RITM is being set to closed Incomplete.

And the Join have 2 result complete (set RITM to resolved) and incomplete (set RITM to closed incomplete).

The workflow is choosing the incomplete path rather than the complete path which update the RITM state with the wrong value.(closed incomplete)

Any idea why this is happening?Screenshot (2).pngScreenshot (3).png

3 REPLIES 3

Ahmmed Ali
Mega Sage

Hello @Georges_Younes 

 

Because in your workflow, the join has 5 incoming transitions and out of those, only two are complete. Complete part will be when all the incoming parts are active.

 

AhmmedAli_0-1715331041600.png

 

https://docs.servicenow.com/bundle/washingtondc-build-workflows/page/administer/workflow-activities/... 

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Dear Ali,

First of all, thank you for the reply,

I am quite new to ServiceNow so I have another question for you:

My logic bhend the 5 incoming transitions is:

Branch is for 3 different API Calls, then if the API calls are executed we continue to the join , mark as completed and continues

If API calls were not called than we create 3 catalog tasks  and upon closing all tasks we continue to the join, mark as completed and continues.

 

From you answer I understand that since I have multiple transitions that are not being passed, the incomplete is being chosen

But how can I do the above without running through this problem?

Hello @Georges_Younes 

 

What is considered as complete and incomplete in your workflow. As far as I can see, both transitions close the RITM with complete state only.

 

in your workflow, I guess both complete and incomplete should go to same activity as you are just waiting for all activities to complete before proceeding, no other condition in the same.

 

Please let me know if I am missing anything here,.

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali