39 views

Symptoms


Workflow is not getting attached to RITM 

Cause


To start a workflow in an RITM, the "Stage" field needs to be marked as "Request approved".

Once this is approved, the following script will start the workflow "Start workflow":

https://<instance-name>/nav_to.do?uri=sys_script.do?sys_id=700cb3c9ac14657b005f7aaef70e1fc8 

Check that the condition for the workflow is 'current.stage=='request_approved' 

In an OOTB configuration, the "Cascade Request Approval to Request Item" script marks the stage as request_approved:

https://<instance-name>/nav_to.do?uri=sys_script.do?sys_id=2d0885b4c61122840070856bf5994bca

For this business rule to run, the request's "Approval" field needs to be marked approved. Check this condition:

if (gr.stage == "waiting_for_approval" && current.approval == "approved") 

The request level workflow marked it approved. 

But in the customer instance it was missing, which caused this issue.

Resolution


Use the OOTB request level workflow which will change approval field value to approved.

Instead of workflow, using some other custom script also the approval value can be changed to 'approved', which will also enable attaching workflow for RITM.

 

Article Information

Last Updated:2018-09-07 05:40:43
Published:2018-09-06