Defining Timeout for a State Model

Define a simple number of time units or more complex expression as timeout for the State Model in the Properties view.

Procedure

  1. In the TIBCO BusinessEvents Studio Explorer, double-click the state model you want to work with.
  2. In the General tab Units field, specify the time units for the state model timeout settings used in the timeout expression.
  3. In the Timeout Expression tab, use the rule editor to enter an expression that defines the timeout period. The expression must resolve to a number of time units.
    • The default expression (return 0;) specifies that there is no timeout.
    • To define a specific timeout period, enter a positive value in the return statement, instead of 0.
    • You can enter a more complex expression as needed, using the TIBCO BusinessEvents rule language.
  4. In the Timeout Action tab, use the rule editor to specify what is to happen if a timeout occurs, again using the rule language. For example, an event may go out to notify an employee of a problem, or to restock inventory and so on.