com.evelopers.unimod.runtime.context
Interface StateMachineContext

All Known Implementing Classes:
JavaSpecificMessageCoder.StateMachineContextImpl1, StateMachineContextImpl

public interface StateMachineContext

State Machine Context - bridge to environment.

Consist of three contexts:
  • Application Context - global context, lives as long as entire application lives;
  • User Context - associated with user session, lives as long as user works with application;
  • Event Context - it's life starts with start moment of event processing and ends with execution of last action during event processing.


    Nested Class Summary
    static interface StateMachineContext.Context
              Desribes methods that any context must implement.
     
    Method Summary
     StateMachineContext.Context getApplicationContext()
              Must return application context
     StateMachineContext.Context getEventContext()
              Must return event context
     StateMachineContext.Context getUserContext()
              Must return user context
     

    Method Detail

    getApplicationContext

    public StateMachineContext.Context getApplicationContext()
    Must return application context

    Returns:
    application context

    getUserContext

    public StateMachineContext.Context getUserContext()
    Must return user context

    Returns:
    user context

    getEventContext

    public StateMachineContext.Context getEventContext()
    Must return event context

    Returns:
    event context