Try OpenEdge Now
skip to main content
Developing BPM Applications with Developer Studio
Working with Graphical Event Logic tool : Using the GEL tool in BPM projects : Adding control structures and custom script : Adding Conditions
 
Adding Conditions
You can use the Conditions pane in the Logic tab to add conditions to IF-THEN, IF-THEN-ELSE, and WHILE constructs.
You can drag and configure the following conditions.
*Comparisons: Used to compare value of an added dataslot (or variable) with static values or value in another added dataslot (or variable), and also to check the length of the entered value. The supported conditions are:
*Numerical Comparison: Compares the value of a user-defined dataslot to a number. Alternatively, you can replace the user dataslot and the constant expression boxes with any of the value expressions, as discussed in Adding value expressions.
*String Comparison: Compares the value of a user-defined dataslot to a Character. Alternatively, you can replace the user dataslot and the constant expression boxes with any of the value expressions, as discussed in Adding value expressions.
*Boolean Comparison: Checks if the value of a user-defined Logical dataslot is true or false. Alternatively, you can replace the user dataslot and the constant expression boxes with any of the value expressions, as discussed in Adding value expressions.
*Object Comparison: Compares the values of user-defined dataslots of the same dataslot type. Alternatively, you can replace the user dataslot boxes with any of the value expressions, as discussed in Adding value expressions.
*Null/Empty String: Used to check if a user-defined dataslot contains a value or not. Alternatively, you can replace the user dataslot box with any of the value expressions, as discussed in Adding value expressions.
*String length: Used to check the string length of a user-defined dataslot. Alternatively, you can replace the user dataslot and the constant expression boxes with any of the value expressions, as discussed in Adding value expressions.
*Other: Used to apply validation rules and customized code as conditions in expression constructs. The supported conditions are:
*Regex validation: Used as a regular expression (regex) validator. Matches the value of a user-defined dataslot to a regex constant value. Alternatively, you can replace the user dataslot and the constant expression boxes with any of the value expressions, as discussed in Adding value expressions.
*Complex condition: Used to add multiple (or cascading) conditions. You can configure this condition to perform the action if all (or any) of the conditions are satisfied.
*Custom condition (one line): Used to add a single line of Java (or JavaScript) condition.
*Custom condition (multi-line): Used to add multiple lines of Java (or JavaScript) condition. Depending on your requirement, you can build your code block that returns true (or false) value.
You can also use the AutoComplete functionality to automatically add script functions. To activate AutoComplete, type jst. (for a Business Process) or bean. (for a Web application) in the respective box.