
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2017 08:22 AM
!
All,
I am attempting to rollback a workflow activity to the previous activity, the rollback works as expected and reopened the task however its not rolling through the script again. The results are the same regardless if I move from task 3 to task 1 or use the rollback activity.
Here is what I'm attempting to accomplish,
If return No,
Rollback to task 1,
If the workflow.scratch.rta_results == No, update the work notes field.
I have logged the activities and determined that in task 3 the workflow.scratch.rta_results is set to No. During the rollback activity, the script is ignored and the request reopened.
How do I accomplish this?
Any help on this is much appreciated. @
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2017 07:21 AM
I got this figured out!
I used this blog to determine how to handle the rollback activity.
https://community.servicenow.com/message/1211937?et=watches.email.thread#1211937

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2017 02:22 PM
Have you tried using the Roll Back To activity instead of directly going back to the activity?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2017 03:06 PM
Chuck,
I have attempted to use the rollback activity and the results are the same. The previous task reopens but the script is bypassed.
Kristy Stevens
IT Department

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2017 03:40 PM
Is that workflow scratchpad variable getting set to what you expect?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2017 12:54 PM
Chuck,
The scratchpad is being logged in tsk 1 and tsk 2.
The initial pass in tsk 1 its being logged as undefined since the var is empty. In tsk 2, the scratchpad is being logged as no.
When tsk 1 is reopened, the scratchpad is not being logged which tells me the script is not running on the rollback activity.
Do you have a suggestion of another way to accomplish the same concept?
During the rollback I wanted to update task 1 that the task was rejected so that these task do not get into a loop.
Kristy Stevens