Class DefaultStateMachineContext<S,E>

java.lang.Object
org.springframework.statemachine.support.DefaultStateMachineContext<S,E>
Type Parameters:
S - the type of state
E - the type of event
All Implemented Interfaces:
StateMachineContext<S,E>

public class DefaultStateMachineContext<S,E> extends Object implements StateMachineContext<S,E>
Default implementation of a StateMachineContext.
Author:
Janne Valkealahti
  • Constructor Details

    • DefaultStateMachineContext

      public DefaultStateMachineContext(S state, E event, Map<String,Object> eventHeaders, ExtendedState extendedState)
      Instantiates a new default state machine context.
      Parameters:
      state - the state
      event - the event
      eventHeaders - the event headers
      extendedState - the extended state
    • DefaultStateMachineContext

      public DefaultStateMachineContext(S state, E event, Map<String,Object> eventHeaders, ExtendedState extendedState, Map<S,S> historyStates)
      Instantiates a new default state machine context.
      Parameters:
      state - the state
      event - the event
      eventHeaders - the event headers
      extendedState - the extended state
      historyStates - the history state mappings
    • DefaultStateMachineContext

      public DefaultStateMachineContext(S state, E event, Map<String,Object> eventHeaders, ExtendedState extendedState, Map<S,S> historyStates, String id)
      Instantiates a new default state machine context.
      Parameters:
      state - the state
      event - the event
      eventHeaders - the event headers
      extendedState - the extended state
      historyStates - the history state mappings
      id - the machine id
    • DefaultStateMachineContext

      public DefaultStateMachineContext(List<StateMachineContext<S,E>> childs, S state, E event, Map<String,Object> eventHeaders, ExtendedState extendedState)
      Instantiates a new default state machine context.
      Parameters:
      childs - the child state machine contexts
      state - the state
      event - the event
      eventHeaders - the event headers
      extendedState - the extended state
    • DefaultStateMachineContext

      public DefaultStateMachineContext(List<StateMachineContext<S,E>> childs, S state, E event, Map<String,Object> eventHeaders, ExtendedState extendedState, Map<S,S> historyStates)
      Instantiates a new default state machine context.
      Parameters:
      childs - the child state machine contexts
      state - the state
      event - the event
      eventHeaders - the event headers
      extendedState - the extended state
      historyStates - the history state mappings
    • DefaultStateMachineContext

      public DefaultStateMachineContext(List<StateMachineContext<S,E>> childs, S state, E event, Map<String,Object> eventHeaders, ExtendedState extendedState, Map<S,S> historyStates, String id)
      Instantiates a new default state machine context.
      Parameters:
      childs - the child state machine contexts
      state - the state
      event - the event
      eventHeaders - the event headers
      extendedState - the extended state
      historyStates - the history state mappings
      id - the machine id
    • DefaultStateMachineContext

      public DefaultStateMachineContext(List<String> childRefs, List<StateMachineContext<S,E>> childs, S state, E event, Map<String,Object> eventHeaders, ExtendedState extendedState, Map<S,S> historyStates, String id)
      Instantiates a new default state machine context.
      Parameters:
      childRefs - the child state machine context refs
      childs - the child state machine contexts
      state - the state
      event - the event
      eventHeaders - the event headers
      extendedState - the extended state
      historyStates - the history state mappings
      id - the machine id
  • Method Details