Does it possible to rollback submitted RITM workflows back ward based on the modifications on the submitted RITM form?

Shantharao
Kilo Sage

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

14 REPLIES 14

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.

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

Just copy paste these lines,

var wf = new Workflow();
wf.restartWorkflow(current);

If your query has been answered please mark correct and close the thread.

SatheeshKumar
Kilo Sage

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