- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 03:35 AM
In the change task state i have replaced 'close skipped' with 'close failed', In the workflow if 'wait for condition' is checked and the state of task is either closed complete or incomplete the flow will complete the task and execution moves forward but how can make the workflow to go forward even when the states value is 'closed failed', in short i want the attributes of closed complete and incomplete to be added to closed failed.
Many Thanks
- Jayanth
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 04:07 AM
Ah, I think I may understand a little better now. No, do not modify the TaskStateUtil script include. That controls how all tasks behave.
It sounds like you created a new state and value (I'll assume the state value is 11 in this case.)
What you need to do is update the dictionary entry on the table to include your new state value "11" in the close_states attribute so TaskStateUtil treats it the same as the default 3, 4, 7 values (setting Active=false when you get to it, triggering any closure business rules, etc.)
http://wiki.servicenow.com/index.php?title=TaskStateUtil#gsc.tab=0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 05:14 AM
You are welcome.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 05:14 AM
FWIW, I'm adding this idea to a future TechNow episode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 04:00 AM
Hi guys i'll just add screenshot to make it clear
These are the change tasks i have been talking about, when i change the state value of task to closed incomplete, even though the wait for completion is true, the workflow execution moves and colour changes from green to blue, but the workflow stays there if i change the state value to 'close failed' which is a custom state value,
so i want the workflow to move on when the state value is 'closed failed' too. Hope this clear things up.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 04:02 AM
I apologize, I don't see any Waitfor activity or If actvity on this workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 04:08 AM