Does it possible to rollback submitted RITM workflows back ward based on the modifications on the submitted RITM form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 09:44 PM
Hello All,
I want to rollback the RITM workflow after submitted I will go and modify same RITM form , Is it possible?
Based on the "IT Asset Type" select box type variable my workflow will run
for example IT Asset Type contains two choices
1.IT Standard Asset
2.IT Non-Standard Asset
If I select "IT Standard Asset" it will go for one way and If I select "IT Non-Standard Asset" it will move for another way
Note : if user selected as "IT Standard Asset" and submitted the request later he was realized he has chosen wrong "IT Asset Type", He made changes on the same RITM form instead of "IT Standard Asset" he will be selected as "IT Non-Standard Asset", In this scenario the requested RITM workflow will rollback and will it run for "IT Non-Standard Asset" process.
Many Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 10:30 PM
Try once with code. It should work smoothly. but i'm not sure about the activity it has already passed. Again it will run all the activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2019 03:27 AM
I have used below lines of code for restarting the workflow based on the modifications of RITM, but it is not working, Business Rule is working info message displaying but workflow not restarting
var wf = new Workflow();
wf.restartWorkflow(current.sys_id);
gs.addInfoMessage("tetsing rollback");
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2019 08:23 PM
Just copy paste these lines,
var wf = new Workflow();
wf.restartWorkflow(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2019 10:18 PM
If your query has been answered please mark correct and close the thread.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 09:56 PM
In this case you can restart the workflow,i f you restart the workflow the flow will be based on the current value of type choosed.
steps to restart workflow.
var wf = new Workflow();
wf.restartWorkflow(current);//pass current or glideRecord object
** It is not a good idea to restart workflow in production.
-Satheesh