Icon

Jump example: Allow end users to postpone a Run Book

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.

  1. In Ivanti Automation, configure a Run Book Microsoft Office that installs Microsoft Office.
  2. In the Identity Director Management Portal, configure a service Install Microsoft Office.
  3. 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.
  4. 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.
  5. In the True path of the Compare Attributes action, let the workflow continue.
  6. In the False path of the Compare Attributes action, add a Provide Information action.
  7. 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.
  8. 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.
  9. Add a Compare Attributes action.
    • In the Compare If area, compare if the value of the service placeholder #Service[Postpone.values.selected] equals No.
  10. In the True path of the Compare Attributes action, let the workflow continue.
  11. 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)].
  12. In the False path of the Compare Attributes action, add a Postpone action that postpones the action for e.g. 1 day.
  13. 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.
  14. Save the service.

Service Request

In this scenario, when the service is requested:

  1. 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.
  2. 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.