This is not the latest version of Identity Director documentation.View available documentation.
Add a Jump action to redirect the workflow to another action and continue from there, instead of from the current location. For example, you can use the Jump action in services that allow users to postpone the execution of a Run Book for a specific number of times.
Configuration
In this scenario, the Jump action is used in a service that allows a user to postpone the execution of a Run Book twice.
- In Ivanti Automation, configure a Run Book Microsoft Office that installs Microsoft Office.
- In the Identity Director Management Portal, configure a service Install Microsoft Office.
- On the Attributes tab, configure:
- A text service attribute Counter with initial value 1.
- A list service attribute Postpone with two values, Yes and No and in which No is the initial value.
- On the Workflow tab, add a Compare Attributes action.
- In the Compare If area, compare if the value of the service placeholder #Service[Counter] equals 3.
- In the True path of the Compare Attributes action, let the workflow continue.
- In the False path of the Compare Attributes action, add a Provide Information action.
- In the Provide Information action, configure a page that asks if the installation of Microsoft Office should be postponed with 1 day.
- Base the outcome on the service attribute Postpone and present it as a radio button.
- On the Properties tab of the action, clear the option All user to cancel this action and configure an expiration time of 1 day.
- In the Exception path of the Provide Information action, delete the End Workflow action. This makes the workflow continue to the Invoke Run Book action if the Provide Information action expires after 1 day.
- Add a Compare Attributes action.
- In the Compare If area, compare if the value of the service placeholder #Service[Postpone.values.selected] equals No.
- In the True path of the Compare Attributes action, let the workflow continue.
- In the False path of the Compare Attributes action, add a Set Service Attribute action.
- In the Service Attribute area, select the service attribute Counter from the current service.
- In the Value area, specify as manual value @[EVAL(#Service[Counter] + 1)].
- In the False path of the Compare Attributes action, add a Postpone action that postpones the action for e.g. 1 day.
- In the False path of the Compare Attributes action, add a Jump action that redirects the workflow to the Compare Attributes action in step 4.
- Save the service.
Service Request
In this scenario, when the service is requested:
- The service placeholder #Service[Counter] in the Compare Attributes action is compared if it equals "3". Because this is the first time the workflow is executed, the value is 1.
- Next, the workflow asks the user if the installation of Microsoft Office should be postponed with one day:
- If the answer is No, the workflow continues executing the Run Book and installs Microsoft Office.
- If the answer is Yes, the workflow is postponed for one day. After that, it continues with the Set Service Attribute action, who sets the value to 2. It then executes the Jump action, who redirects the workflow to the Compare Attributes action in step 1. Here, the value of service placeholder #Service[Counter] is compared again, etc.
The workflow continues until either the user no longer wishes to postpone or if the transaction has been postponed twice. It then executes the Run Book and completes the workflow.