◷ Reading Time: 1 minute
Condition
This command defines a column of a Decision Table that holds a template for validating a condition. This is an expression that uses template mechanisms. $value refers to values of the cells of this column, as shown below.
A condition can participate in the discrimination network when the discriminator attribute is set to true.
Parameters
- name
- Description: The name of a column
- Type: String
- Mandatory: Yes
- expression
- Description: Expression of the condition to be evaluated
- Mandatory: When no ‘term’ is defined
- Type: String (expression and template)
- term
- Description: Refers to a Glossary Term’s name
- Mandatory: When no ‘expression’ is defined
- Type: String (name of a term)
- discriminator
- Description: When a column is defined as a discriminator, true; otherwise false. (default is false)
- Mandatory: no
- Type: boolean (true or false)
Sample
<Columns>
<Condition name="Min" expression="person.Age>=$value" />
<Condition name="Max" expression="person.Age<=$value"/>
</Columns>