The assignment task

The assignment task is used to assign a value to user-defined variables in Workflow Manager.

Before you can define a variable in the assignment task, you need to add the variable in Workflow Manager. To add a variable to the Workflow, perform the following steps:

  1. In Workflow Manager, open the workflow for which you wish to define user-defined variables. Navigate to Workflow | Edit | Variables.
    The assignment task
  2. Click on the Add a new variable option to add new variables to the workflow, as shown in the preceding screenshot.

    A new variable is created, as shown in the preceding screenshot. The new variable that is created is $$NEWVARIABLE1. You can change the name of the variable and its data type.

Creating an assignment task

To create an assignment task in Workflow Manager, follow these steps:

  1. In Workflow Manager, navigate to Task | Create.
  2. From the list of tasks, select Assignment Task and specify the name of the assignment task, which is amt_TASK_NAME. For our reference, we are using the assignment task's name as amt_ASSIGN_VALUE. Then, click on Done.
    Creating an assignment task

    The task appears in Workflow Manager. Use the link task to connect the start task to the assignment task.

    Creating an assignment task
  3. Double-click on the assignment task to open the task in the edit view. Navigate to Expressions | Add a new Expression.
    Creating an assignment task

    Select the user-defined variable you added at the Workflow level. We have added $$NEWVARIABLE1.

  4. Assign the value that you wish to assign to the variable. We have assigned the status of the cmd_COPY_FILE command task from the Expressions tab in the assignment task, as shown in the preceding screenshot. Then, click on OK.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset