This documentation supports the 19.05 version of BMC Digital Workplace Advanced.

To view an earlier version, select the version from the Product Version menu.

Adding local variables to a workflow

Internal service suppliers, internal supplier administrators, and catalog administrators create local variables to map them to an output map of an activity in a workflow.

By assigning a local variable to an output map of a workflow activity, you  associate a source expression with a variable that can be easily referenced in a complex workflow without a need to manually configure the same expression again.

Before you begin

If you have not done so already, create a workflow. For information about how to design a workflow, see Designing a simple workflow.

You can add local variables to your workflow in one of the following ways:

To create a local variable from the Add/Remove Variables dialog

  1. Open a workflow that you want to edit, and click the Properties >  General tab.
  2. Click Add/Remove Variables.
  3. In the Add/Remove Variables dialog box, click Add Variable, and enter the following values:

    Parameter

    Description

    Name

    objName variable that represents the question data type.

    It must be unique from other variables in the same workflow.

    Variable type

    Select Local Variable.

    Data Type

    Select one of the following data types:

    • Boolean—true or false
    • Date—Yyyy-MM-dd format
    • Date/Time—Yyyy-MM-dd hh:mm AM/PM format
    • Time—Hh:mm AM/PM format
    • Decimal—Integer numerical with a decimal point
    • Floating—Integer with a floating point
    • Integer—Integer numerical (with no decimal)
    • Object—Universal type of data
    • Text—Text string
    • Selection—Selection list value. for this data type, you must additionally create options list.

    Note:

    You can assign only the variable data type that the input field of the expects. For example, if a connector action expects an integer, then you must create a variable of data type: Integer.

    Default value (Optional)Specify the default value for the local variable.
    Description (Optional)Enter the description for the local variable. It can be useful when you have a complex workflow with several input variables.
  4. Save the local variable.
    The saved variable appears in the list of variables.

To create a local variable from the output map of a selected activity

  1. Open the workflow that you want to edit, and select the activity to which you want to add a local variable.
  2. Expand the Output Map section for the selected activity.
  3. Click +Add.
  4. Double-click in the Name field, type the name of the local variable, and press Enter.

    The local variable is saved and is available for selection from the variables list.

    Note

    You can map dynamically added local variables to the output map of any activity only when both fields are defined for the added local variable: the Name field and the Source expression.

    In a workflow, local variables that were dynamically added, are not displayed in the Variables section of the Properties >  General tab.

Where to go from here

When you have created a local variable, you can map it to a source expression of any activity. For information about how to do this, see Configuring an output map for an activity and using it in multiple activities.

Was this page helpful? Yes No Submitting... Thank you

Comments