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:
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.
To create an assignment task in Workflow Manager, follow these steps:
amt_TASK_NAME
. For our reference, we are using the assignment task's name as amt_ASSIGN_VALUE
. Then, click on Done.The task appears in Workflow Manager. Use the link task to connect the start task to the assignment task.
Select the user-defined variable you added at the Workflow level. We have added $$NEWVARIABLE1
.
cmd_COPY_FILE
command task from the Expressions tab in the assignment task, as shown in the preceding screenshot. Then, click on OK.