Add Process Variables

Add Process Variables

A process requires variables to manipulate the process data. To add variables to a process follow the steps below:

1. Click "Add" -button, which is under Process Variable or click the corresponding Edit option under Operations column, in Edit Process Type screen. The Process Variables screen appears.

2. Enter variable name in Name field.

 Note: Enter a unique name. Name field is mandatory.

3. Check Is Process Identifier check box.

The Is Process Identifier is used to make the variable as an identifier of the process. For example, if there is a process named “My Process” has a variable “name” marked as process identifier. So, if you start that process with name="John". While that process is running you cannot start another "MyProcess" with name="John". But you can start "MyProcess" with any other name.

4. Check Required check box.

Note: The Required check box, defines the variable as mandatory. The application cannot perform operation without the variable value.

5. Select the variable type from Type drop down.

By default, it displays String type. Currently, Grailsflow supports the following variable types:

6. Enter default variable value in Value field. It is the default value for the variable. By default, the value will be set when process gets started.

7. Select the type of variable view from View drop down. View specifies the way the variable will be displayed on the UIs of the interactive nodes ('Wait' nodes). Refer Variable View section for more details.

8. Click "Apply" -button to save the process varaible.

Similarly you can create multiple variables for a process.