Add and Modify Actions

Actions define the activities to be taken by the decision table rule if the conditions are met. Actions are composed of an action and a number of selector cells. Actions can be defined in three ways: Specify Action, Domain Action, and Multiple Domain Action.

To add a action

  1. Right-click in the Action pane and select New from the right-click pop-up menu.

    Or

    From the Logic menu, choose New, Action

  2. Select Specify Action, Domain Action, or Multiple Domain Action from the pop-up menu.

    The action properties pane appears to the right of the Conditions/Actions page.

    1. For Specify Action: enter a name to describe the action in the Name field. If no name is entered, the name defaults to newActionRow.
    2. For Domain Action: select the label of an Action domain interface member from the Name field drop-down list. Notice that, if present, the type of input argument to the domain interface member is indicated; otherwise (none) is indicated. The description of the selected domain interface member is provided.
    3. For Multiple Domain Actions: enter a name to describe the action in the Name field. If no name is entered, the name defaults to newActionRow. A list of labels of Action domain interface members that are possible values for Multiple Domain Action is provided
  3. For Specify Action only: enter the statement(s) that are to be executed when the action is to be performed in the Implementation field. This can be any Aion executable statement or block of code, including

    Actions should be limited to a few lines of code.

To modify action properties

  1. In the Decision Table Editor's Table page, right-click an Action Name cell.
  2. Select the Edit <name> pop-up to display action properties in the Conditions / Actions page.

To view the effect of changes, click the Table tab. Changes are automatically applied if Auto Refresh is checked in the Table page pop-up menu. Or you can select Refresh from the Table page pop-up menu to apply changes.

Note: You can tell Aion to use Auto Refresh to refresh the table each time a condition or action is modified or added by checking Automatically Refresh in the Decision Table Options dialog (select Tools, Options, Decision Table).

This diagram describes how to modify Action properties in a Decision Table Editor.


Copyright © 2009 CA. All rights reserved. Send E-mail to CA about this topic