Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Workflow designer allows you to design and deploy automation workflows for your tenant. Luma Automation provides various OOTB events and connectors. You can drag and drop the connectors on the Workflow Designer, link them in sequence based on the business process and create a workflow. Following functions can be created using these events:

...

  1. On the Workflow Designer screen, drag and drop the Create ServiceTask control. Here we can configure the task or action to be executed in the Target system.

  2. Select the Service Task and open the Properties Panel. On the Properties panel, configure the operation to be executed in the Target system. Add the following details:

    1. On theProperties panel → General tab, add the general Service Task information:

      1. Add the Service Task Name and any Documentation detail.

      2. In the Connected App, select your Target system.

      3. Select the Instance that connects to your target environment. Refer to Create Integration Operations for more information on integration App and Instance creation.

  3. Alternatively, you can also drag and drop the Connected App from the left pan on the designer. This automatically creates a Service Task for the selected Connected App. Add the Service Task details and required Instance for your target environment.

Configure Input

...

Parameters

To add Input variables for the operation, follow the below steps:

...

Input Parameters refer to the information required to execute the task configured as part of the Service Task. The value is used as input to the step. There are multiple ways to assign value to the Input parameter such as using a Workflow Variable, Workflow Input parameter, a static value, etc.

Info

The Workflow Variables and Workflow Input Parameters cannot be directly used in a Service Task configuration. Create Input parameters for the Service Task and assign the required value.

To add Input variables for the operation, follow the below steps:

  1. Select the Service Task and navigate to the Properties Panel → Input tab. Configure the Input parameters for the operations.

  2. In the Input Parameter section, add the input parameters required to execute the task on the target system.

    1. Click on + to add to create a new Input Parameter.

    2. Add Parameter name.

    3. Select Data type.

    4. Select Required if the attribute is required for the operation.

    5. Add Required Field Validation Message.

    6. Select the Validations as required. The applicable validations are populated based on the Data Type selected.

    7. .Next, add Mapping to define the way the parameter should accept the value. The parameter can accept values from the user’s input, existing parameters from earlier steps, or from the Workflow.

      1. Define the Direct Mapping to represent the Mapping type. You may use:

        1. Step Output Parameter to use output parameter from the previous steps.

        2. Step Meta Parameter to use metadata parameters from another Service Task in the Workflow as input.

        3. Workflow Input Parameter to accept information from user’s input. You may use the User-defined or System Defined attributes created as the Workflow Input parameters (created in Point 3).

        4. Workflow Variable to use the system-defined or user-defined Workflow Variables such as workflow ID, and Tenant ID.

      2. Set Constant Value to assign a default constant value to the parameter.

      3. Constant Transform Function uses a transformation function to assign a value to the parameter. You can use the out-of-the-box Random UUID function to generate random universally unique identifier.

      4. Expression is used when you want to apply a Mathematical operation or method to process an expression.

    8. For a Required field, add Default Value.

    9. You can also use a Transformation function to update the value before using the same in the workflow. Select Apply Transformation and pick the required out-of-the-box Transform Function.

    10. Follow the above steps to add as many input parameters as required.

Configure Operation

...

Operation

The ‘Operations’ tab is used to define the task to be executed as part of the Service Task. Here we can configure the Web Service details and the Request sent to the target system.

Follow the below steps to create an Operation to execute the task on the target system.

...

You Operation is configured.

Info

In addition to the Service Task parameters, Workflow parameters and out parameters of other steps in the workflow can be used in Operation configuration. For more details, refer to Using parameters in Workflows.

Configure Output Variables

...

  1. On the Workflow Designer screen, drag and drop the Create ScriptTask control. Here we can the script to be executed as part of the workflow.

    Image RemovedImage Added
  2. Select the Script Task and open the Properties Panel. On the Properties panel, configure the script details to be executed. Add the following details:

    1. On the Properties panel → General tab, add the general Service Task information:

      1. Add the Script Task Name.

      2. The script task accepts groovy script. Add the script to be executed.

        Image RemovedImage Added
    2. The variables used in the script are automatically identified as Input and Output parameters. On the Input/Output tab, the ‘getvariables’ are identified as ‘Input Parameters’ and ‘setvariables’ are identified as ‘Output Parameters’.

...

  1. Select XOR gateway and use the Sequence Message Flow or Association tool to create a link with the next element.

  2. Now select the link to add the associated rule.

  3. On the SequenceFlow properties panel, add the rule to be evaluated.

    1. Add rule Name and Documentation details

    2. In the Details section, add the rule to be evaluated. In the Condition Type, You can either add an expression or a script to evaluate the rule.

      1. For Expression:

        1. Select Expression as Condition Type.

        2. Add the rule in the Condition Expression field. Here you can refer to a parameter from the previous step and create the rule.

        3. To refer a parameter from a previous step, use $.out_<Activityname>_<paramtername>. For example, ${out_Activity_17mx2d1_default_status == 'SUCCESS'}.

          Image RemovedImage Added

          Note: Select the element and copy the element ID from the properties panel.

      2. For Script:

        1. Select Expression as Script.

        2. Add the script.

          Image RemovedImage Added
  4. Follow the above steps to create as many rules as required.

...