Workflow conditions based on catalog task state

rbertram
Kilo Expert

I am not sure why this is not obvious to me, but how do you create a condition on a catalog task based on the the state the task was closed with?

What I am trying to do is create an alternate flow if a catalog task is closed with any state other than "Closed Complete".

11 REPLIES 11

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Take a look at this wiki article about adding workflow activity conditions. The example is an approval, which would either be approved or rejected, but you can do the same thing with catalog tasks using their states as well.

http://wiki.servicenow.com/index.php?title=Using_Workflow_Activities#Managing_Conditions


rbertram
Kilo Expert

I tried that. I created a condition of "current.state==3" that would continue and another condition of "current.state==4 || current.state==7" will reject the request. After the task is closed, the workflow does not move forward.


Brad Tilton
ServiceNow Employee
ServiceNow Employee

In that case current actually refers to the request item record. You would want to use


activity.result == 3
instead.


Hi Brad,



I have similar situation i need to change activity.result == 8 to some other value and for this do i need to change this anywhere else the new value to 8??



Regards,


Raghu