Defining Timeout for a State

Define the resulting state of a timeout and the actual timeout period using regular or complex expressions.

Procedure

  1. In the TIBCO BusinessEvents Studio Explorer, double-click the state model you want to work with and in the diagram, click the state whose timeout you want to configure.
  2. Select the Timeout tab and select the units to use: Milliseconds, Seconds, Minutes, Hours, Days, Weekdays, Weeks, Months. (This means you do not have to define units in the timeout expression.)
  3. Select a Timeout State Choice value, to determine what state the machine goes to in the event of a timeout:
    • Current: Stays in the same state. The timeout action executes. Entry and exit actions are ignored. However, the timeout period resets and it is possible for the state keep timing out.
    • All: for states with multiple next states only, you can select this option to have TIBCO BusinessEvents prepare to go to any of the possible next states. For more details on this option, see State Model Timeouts and State Timeouts.
    • Specified: In the Timeout State field, select the state to go to in the event of a timeout.
      Note: When you choose All or Current, the value of the Timeout State field is grayed-out and is ignored. That field is used only for the Specified option.
  4. In the Timeout Expression tab, enter an expression that evaluates to a number (that is, a number of the time units you chose in the General tab).
  5. In the Timeout Action tab, use the TIBCO BusinessEvents rule language to add any actions that will be performed when the state times out.