Action

◷ Reading Time: 1 minute

Action

This command structures the columns of a Decision Table as an action. Action can be in two types:

  1. Notice: To write a notice in a notification (set type to notice)
  2. Or using any expressions directly (e.g., call a method, assign a value). See Expression. (leave type empty)
Parameters

  1. name
    1. Description: Represents the name of the column
    2. Mandatory: Yes
    3. Type: String
  2. type
    1. Description: type of action. If this is not set then expression should use the full evaluation expression. For more information check Expression
    2. Mandatory: No
    3. Type: Notice (Obsoleted values: Set, Call)
  3. expression
    1. Description: The expression template of an action or notices message
    2. Mandatory: When no ‘term’ is defined
    3. Type: String (Expression)
  4. term
    1. Description: Refers to a Glossary Term’s name
    2. Mandatory: When no ‘expression’ is defined
    3. Type: String (name of a term)
  5. variable
    1. Description: name of the variable that the expression targets
    2. Mandatory: Yes if the type is set
    3. Type: String (parameter name)

Obsoleted: In ‘type’ parameter Set and Call are for legacy compatibility. Make sure you don’t use it in your models. To call a method or assign values to properties of parameters use Expressions.

Notice Action

  1. notice (only valid when type is set to ‘Notice’ )
    1. Description: specifies the type of notice message
    2. Mandatory: No
  2. notification (When notice action)
    1. Description: Allows grouping notices in different categories
    2. Mandatory: No
    3. Type: string (no space is allowed)
  3. useMessageId (When notice action)
    1. Description: specifies the values for notice messages will be used as messageId
    2. Mandatory: No
    3. Type: bool (true/false)

Array

When Action applies on array, below parameters are required:

  1. onArray
    1. Description: reference to the parameter/expression that is the source of array/collection
    2. Mandatory: Yes
    3. Type: Parameter name or expression
  2. elementName
    1. Description: reference to each individual element on the array/collection
    2. Mandatory: Yes
    3. Type: Parameter name

Sample

Action with no type specified as an direct expression:

<Columns>
  <Condition name="Min" expression="person.Age ge $value" /> 
  <Condition name="Max" expression="person.Age le $value" />
  <Action name="Title" expression="title = $value"/>
</Columns>

Action with type specified.

<Columns>
  <Condition name="Min" expression="person.Age ge $value" /> 
  <Condition name="Max" expression="person.Age le $value" />
  <Action name="Title" expression="title" />
</Columns>

Action with type of ‘Notice’ to write messages using Notification

<Columns>
  <Condition name="Product Exists?" expression="product.Found == $value" />
  <Condition name="Points > 20" expression="((product.Quantity * product.Point) > 20)" />
  <Action name="Error Message" expression="$value" type="Notice" />
  <Action name="Success Message" expression="$value" type="Notice" notice="Information" />
</Columns>

Updated on November 26, 2025

Was this article helpful?

Related Articles