Class LifecycleManagerImpl

    • Constructor Detail

      • LifecycleManagerImpl

        public LifecycleManagerImpl()
    • Method Detail

      • init

        public void init()
      • execute

        public TransitionResult execute​(StatefulObject statefulObject,
                                        String event)
        Description copied from interface: LifecycleManager
        Executes a transition of the stateful object according the event.
        Specified by:
        execute in interface LifecycleManager
        Parameters:
        statefulObject - an object which state should be changed with corresponding actions execution
        event - a signal which helps to define the target state
        Returns:
        TransitionResult transition result containing information about executed transition
      • execute

        public TransitionResult execute​(StatefulObject statefulObject,
                                        String event,
                                        Map<String,​Object> variables)
        Description copied from interface: LifecycleManager
        Executes a transition of the stateful object according the event. The method contains an additional map of variables which is used in the actions and conditions during a transition.
        Specified by:
        execute in interface LifecycleManager
        Parameters:
        statefulObject - an object which state should be changed with corresponding actions execution
        event - a signal which helps to define the target state
        variables - any external data which is necessary during transition performance
        Returns:
        TransitionResult transition result containing information about executed transition