Workflow is getting stuck at particular scenario

pakalanikhi
Tera Contributor

Hi,

We had a requirement to create requestor task for RITM, once the first task is created and in that task if we select requestor task as yes, then it should create the requestor task for respective task. And this will happen for all the other tasks available in the RITM. When we reach at last task, which is PO Processing, the requestor task is not getting created even we selected the requestor task as yes, this is due to workflow stuck at if block. We are not getting any error. Similar if blocks are already working in the same scenario.

pakalanikhi_1-1737111768519.png

 

pakalanikhi_0-1737111699258.png

 

There are other scenarios where requestor task for PO Processing is getting created:

    1. If you skip requestor task for all the original tasks available, and select requestor task only for PO Processing, in this case requestor task for PO is created.

pakalanikhi_2-1737112021611.png

 

    2. If you create requestor task for some of the original tasks, and select requestor task for PO Processing as well, in this case requestor task for PO is created.

pakalanikhi_3-1737112163537.png

 

3 REPLIES 3

JenniferRah
Mega Sage

What's the condition on your If action?

we have no other conditions

pakalanikhi_0-1737126964614.png

 

State is an integer, so try changing the '8' to just 8. 

 

Also, this doesn't make much sense. You are basically checking to see if that variable is Yes, the state is 8, and the short description is "PO Processing". Assuming the workflow runs on the RITM, why not just use the condition builder rather than creating a script for that?