Class StateTransition


  • public class StateTransition
    extends Object
    Whenever a plan item or event listener changes its state as part of a CMMN engine operation, its current state and transition is checked to be valid. This static class supports methods for this check as well as initializes all possible states and their transitions.
    Author:
    Joram Barrez, Micha Kiener
    • Field Detail

      • EVENT_LISTENER_TRANSITIONS

        public static Map<String,​Set<String>> EVENT_LISTENER_TRANSITIONS
    • Constructor Detail

      • StateTransition

        public StateTransition()
    • Method Detail

      • addPlanItemTransition

        protected static void addPlanItemTransition​(String state,
                                                    String... transitions)
      • addEventListenerTransition

        protected static void addEventListenerTransition​(String state,
                                                         String... transitions)
      • isPlanItemTransitionPossible

        protected static boolean isPlanItemTransitionPossible​(String currentState,
                                                              String transition)
      • isEventListenerTransitionPossible

        protected static boolean isEventListenerTransitionPossible​(String currentState,
                                                                   String transition)