Workflow conditions based on catalog task state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2012 11:55 AM
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".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2012 12:14 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2012 12:26 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2012 12:52 PM
In that case current actually refers to the request item record. You would want to use
instead.
activity.result == 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2014 02:00 AM
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