This is not the latest version of Identity Director documentation.
View available documentation.

Icon

Compare Attributes

Add the Compare Attributes action to direct the workflow by comparing one or more sets of two values. This decides what the next workflow action is. For example, this may result in an alternative workflow that uses different actors or different Ivanti Automation Run Books.

Configuration

Field Explanation and Tips
Action Name Optionally specify a friendly name for the action. This name must be unique in the workflow.
Compare Type Specify how values should be compared. The Compare Type applies to all sets of values in the workflow action.
  • Select Integer to compare values numerically. Only integer values can be compared.
    • Non-integer values (e.g. "2.5", "123,25", "123abc") and fractions resolve as "0".
    • Irrespective of the Windows regional settings of your device, if you use commas or periods in a value, it resolves as "0". For example, if you compare 100 to 102.5, 100 is the largest value because 102.5 resolves as 0.
  • Select String to compare values. This is a binary comparison of characters (case-sensitive). For example, a value "Johnson" is not equal to "johnson".
  • Select Workflow trigger to compare the actual workflow trigger, to a trigger you select from the list of possible triggers.
Compare if Specify which values should be compared. You can configure multiple criteria per workflow action, as long as they can all use the same Compare Type.
  • For compare types Integer and String:
    • you can specify manual values, service attributes and/or functions.
      • If you use the placeholder #Service[{attributename}.{labelname}.state] for a checklist service attribute, its value always resolves to lower-case letters (true/false).
    • you can specify wildcard characters in the second comparison field to configure a conditional expression.
    • the comparison is a binary comparison of characters, which is case-sensitive. For example, a value "Johnson" is not equal to "johnson".
  • For compare type Workflow trigger, on every criteria-line you create:
    • the first comparison field is pre-filled with the placeholder for the value of the actual workflow trigger: #Service[WorkflowTrigger.Value]
    • the second comparison field contains the list of possible workflow triggers.

    Even though #Service[WorkflowTrigger.Value] returns a numerical value, the Transaction details (at Transactions) display the friendly name of the trigger. This enables you to easily compare the actual trigger to the value you configured in the second comparison field.

  • This action adds two exceptions to the workflow: one that specifies what happens when the comparison is true and one that specifies what happens when the comparison is false.
  • You can nest this action in other Compare Attributes actions.
See also