Creating context variable
- Akash Kumar Jaiswal (Unlicensed)
- Ashhad Alam
You can create multiple context variables in a process flow using the Put-Context-Var action. Once they are created, you can use these context variables in the context of the process flow activities as and when required.
Follow the steps below to create a context variable:
- In the Web Process Designer, click Repository View.
- Click Actions tab, select the Put-Context-Var action and then drag it to the Canvas area.
Click Put-Context-Var action and select the View Properties option from the context pad.
The properties of the Put-Context-Var action are displayed in the Activity Properties Panel.Click the VARIABLES tab.
This screen displays a list of existing context variables and the option to add the new context variables.To add a variable, select the name of the activity for which you want to create the context variable from the drop-down list of Activity Name.
This drop-down lists all the activities that are currently present on the Canvas area. Once you select the activity, all the attributes of the selected activity are listed in the Variable Name drop-down list.Select the attribute for which you want to create the context variable from the drop-down list of Variable Name. For example, you can select the File Path field in case of a File Source or File Target activity.
Enter the value that you want to set for the attribute/context variable in the Variable Value field.
Click Add.
You can add multiple context variables (up to a maximum of 100) for the process flow.The list of added context variables is displayed on the bottom of the same window with columns specifying the activity name, variable name, and variable value. You can edit or remove an existing context variable by clicking Edit or Remove button respectively.Click in the canvas area to continue with creating the process flow.