Evaluation (using Java Script)
Description
Evaluation (using JavaScript) calculates a Boolean expression using JavaScript and returns true or false to determine the next step in the process flow. Use this process entry when you need complex conditional logic that goes beyond simple variable comparisons — for example, evaluating multiple conditions with AND/OR operators, calling functions, performing string manipulation, or computing values from variables before deciding which branch to follow.
Configurations
| Field Name | Description |
|---|---|
| Process Entry name | Specify a unique name for the process entry, on the workspace area. A process entry can be placed on the canvas several times; and each instance of the entry must have a unique name. |
| Java Script | The result of a JavaScript process entry is either true or false. In other words, it needs to end with a boolean expression.Here are a few possible evaluations to end your script with: lines_input > 100 or true or parent_process.getVariable("INPUT_DIRECTORY").equals("/tmp") |