Package ilog.rules.teamserver.model.states

Contains classes that define a generic state system.

See: Description

  • Class Summary 
    Class Description
    AbstractTransitionCondition<State extends java.lang.Enum<State>>
    Defines a condition by which a transition between states is allowed.
    CompoundTransitionCondition<State extends java.lang.Enum<State>>
    Defines a condition by which a transition between states is allowed.
    ConditionalTransitionSystem<State extends java.lang.Enum<State>>
    Declares a state transition system where the definition of the list of possible transitions is twofold.
    ControlledState<State extends java.lang.Enum<State>>
    Stores a state that can only evolve as defined by a companion transition system.
    OtherStateTransitionCondition<State extends java.lang.Enum<State>,OtherState extends java.lang.Enum<OtherState>>
    Defines a condition by which a transition between states is allowed depending on another state.
    RoleTransitionCondition<State extends java.lang.Enum<State>>
    Defines a condition by which a transition between states is allowed if the current user is in a given role.
    RoleTransitionSystem<State extends java.lang.Enum<State>>
    Declares a conditional transition system where a distinct condition can be attached to each transition, with additional methods to allow a transition to, or deny it from, users in a given role.
    SingleConditionTransitionSystem<State extends java.lang.Enum<State>>
    Declares a conditional transition system where all the transitions have the same condition attached.
    TableConditionalTransitionSystem<State extends java.lang.Enum<State>>
    Declares a conditional transition system where a distinct condition can be attached to each transition.
    TableTransitionSystem<State extends java.lang.Enum<State>>
    Defines a state transition system where the list of possible transitions is explicitly given by providing, for each state, the list of its successors.
    TransitionCondition<State extends java.lang.Enum<State>>
    Defines a condition by which a transition between states is allowed.
    TransitionSystem<State extends java.lang.Enum<State>>
    Defines the possible transitions between states.
  • Exception Summary 
    Exception Description
    IllegalTransitionException
    Defines an exception that is thrown when a ControlledState instance attempts to set its value to a state that is not a valid successor of this current value.

Package ilog.rules.teamserver.model.states Description

Contains classes that define a generic state system. Except RoleTransitionCondition and RoleTransitionSystem, the classes in this package only depend on the Java library. In the system implemented by this package:

  • The states (such as New, InProgress, etc.) are regular Java enumerations. There is no interface to implement or similar constraint. Most classes in this package are generic, and take the states enumeration as a parameter.
  • The transitions that are allowed between states are defined by classes in the TransitionSystem hierarchy. Classes in this hierarchy (almost) only need to define an implementation for the abstract TransitionSystem.isPossibleTransition(State, State) method.
  • When the decision to allow a transition between two states is subject to additional conditions, classes in the TransitionCondition hierarchy are used. Some classes are provided to implement compound conditions (or, and, not) and common cases, such as role-based permissions.

The ControlledState class provides an integrated service to store a state and control that it only takes the values allowed by an associated transition system.

Decision Center API

© Copyright IBM Corp. 1987, 2017