User-Defined Workflow Variables
While creating Workflow we have the option of creating a user defined variable .But when you create a user defined variable for one Workflow then it can be used only for the same workflow and not others. You can use the variable in tasks within that workflow. Use user-defined variables when you need to make a workflow decision based on criteria
Steps to create a workflow variable:
- Go to the Workflow Designer, create a new workflow or edit an existing one.
- Go to the Variables tab.
3.Click Add button to add the new variable
4.To validate the default value of the new workflow variable, click the Validate button.
5.Click Apply to save
Predefined Workflow Variables
There are a set of predefined variables used by Workflow Manager in each workflow used to control workflow and task conditions. These are mainly two types
Task-specific variables:In Expression editor for a task there are list of Task-specific variables. These Task specific variables are given by Workflow manager for performing a specific task while running a workflow.
Built-in variables:Just like Task specific variables the Built in variables are listed under the Built-in node in the Expression Editor.It is used to return run-time or system information such as folder name, Integration Service Name, system date, or workflow start time