IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Configuring events, conditions, and actions for widgets

General Steps for the ECA Process:

Note: The ECA process is used in most cases where you want different functions to be hidden or displayed in one page, without navigating to different pages to access particular functions

Step 1: Create an Event

Step 2: Set the Conditions for an Event

Step 3: Determine the Actions for a given Condition

Creating an Event

To create an Event take the following steps:

  1. Select a widget from a completed user interface, and select the Properties tab.

  2. Select the + Button in the Rules List, to bring up the Add Rule dialogue box

  3. Create a name for your rule in the Add Rule dialogue box.
  4. Add a description for the rule (Optional).
  5. Select the + button in the Event panel of the Add Rule dialogue box to add an event.
  6. Click the + button next to the Form icon, to display the list of available widgets (select widget from list).

  7. Select the event from the list of Events, and click OK.
  8. From the Rules List (Properties Tab), click the Rule Name or Event, to display the Condition panel.

Next Step: Set the Conditions for the Event.

Set the Conditions for an Event

In the condition panel you can set the condition related to an event. Within the condition panel you will have the following options:

Adding a Widget Function

To set the Conditions for a Widget Function take the following steps:

  1. Select Widget Function from the combination box on the Conditions panel.
  2. Select a widget from the list that you want to apply a function to (Click the + button).
  3. Select a function from the adjacent list of functions.
  4. Click Apply Value.

Adding a Widget Property

  1. Select Widget Property from the combination box on the Conditions panel.
  2. Select a widget from the list that you want to apply a function to (Click the + button).
  3. Select a function from the adjacent list of functions.
  4. Click Apply Value.

Adding an Expression

  1. Select Expression from the combination box on the Conditions panel.
  2. Click the browse button to add a value for the Left side of the expression.
  3. Select an Operator for the expression.
  4. Click the browse button to add a value for the Left side of the expression.

Example:

If you wanted to create a rule which stated that a text box field could not be null, you would take the following steps:

  1. Select Expression from the Conditions panel.
  2. Click the browse button to add a value for the Left side of the expression.
  3. Select Widget Property, then the selected widget, then value
  4. Select the != for the Operator expression.
  5. Click the browse button to add a value for the Left side of the expression.
  6. Enter “ (blank string) for constant value.
  7. Click Apply Value.

Adding an Action

For adding an action to an event there are two tabs to consider (1) Action If True, and (2) Action If False. However the procedure to add an action to an even is the same.

  1. Click a widget on the XUI editor, in which you want to apply an action to.
  2. Select the Properties tab, then select the Rule tab.
  3. Click the + button in the Action panel to add action to an exiting event.
  4. Select Widget Property from Please Select A Value dialogue window.
  5. Click the + button in the Invoke Widget Function panel, and select a widget.

  6. Select an action from the adjacent column.
  7. Click the browse button next the Set Property Value text box.
  8. Enter a value in the Constant text box, and click OK.

Example:

If the user wanted to create an event for the following rule, where for the Account Number text box could not be null. The user would create an rule for the event (see Creating An Event), then set the conditions in this situation we created an expression Text02.Value != “ (also see Adding an Expression). Once these steps are complete, the last step in this process is to add an action.



Feedback