Activity.Result condition

traviswarren
Kilo Expert

Hello all, I created a new state value that I would consider a closed state named "Failed".   Per a workflow, I would like the value of "Failed" to progress a "Create Task workflow activity.   Currently, it is waiting for one of the default closed states.   Is there a way to make my custom state value of "Failed" considered as a closed state so it appears in the activity.result?   If it appears as an activity.result I can add a condition to the workflow activity. Thanks

2 REPLIES 2

traviswarren
Kilo Expert

I attempted to use the community blog post https://community.servicenow.com/thread/163177 but I did not have success.   I have a business rule on the change task table checking for all closed states including "Failed" which makes the change task Active= false. After changing the status to "Failed" I see that the change task is now not active.   Also, in the condition for the workflow I have it set to activity.result == '8' which is the value of failed.


Steven Young
Tera Guru

try     activity.result == 8         try the 8 not in the ' '



i created several custom results for us.  


activity.result == 3   Closed complete


activity.result == 4   Closed Incomplete


Capture.JPG