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

Shweta KHAJAPUR
Tera Guru

Can you post the screenshot of workflow?? Or yoou can check variable before end activity if IT Non-Standard Asset is selected then add roll back activity.

 

Hello,

 

Please find the screen shot below based on highlighted activity the workflow movement available, But here my question is once workflow has been moved in the first selection of highlighted activity later he was changed 2nd selection on the RITM, will it move for the 2nd selection way without any defects 

 

find_real_file.png

 

Many Thanks

Try below code in After Update BR on sc_req_item table with the condition

IT Asset Type changes

 

add this code

 

var wf = new Workflow();

wf.restartWorkflow(current);//pass current or glideRecord object

Hi Shweta,

 

Thank you so much for the quick response, Will it work in a smooth manner or else any disadvantages are there if we restart the workflows 

 

Thanks