Class WorkflowExecutorListener.ListenerContext

java.lang.Object
io.nflow.engine.model.ModelObject
io.nflow.engine.listener.WorkflowExecutorListener.ListenerContext
Enclosing interface:
WorkflowExecutorListener

public static class WorkflowExecutorListener.ListenerContext extends ModelObject
ListenerContext instance is created at start of workflow state execution and passed to listener's life-cycle methods.
  • Field Details

    • start

      public final org.joda.time.DateTime start
      The time when the listener context was created.
    • definition

      public final WorkflowDefinition definition
      The definition of the workflow.
    • originalState

      public final String originalState
      The name of the state of the workflow instance before processing.
    • instance

      public final WorkflowInstance instance
      The workflow instance.
    • stateExecution

      public final StateExecution stateExecution
      The access point for the workflow instance-specific information.
    • nextAction

      public NextAction nextAction
      The action to be taken after workflow state execution. Available in afterProcessing and afterFailure stages only. Changing the value in the listener has no effect.
    • data

      public final Map<Object,Object> data
      Stateless listeners can use data to pass information between listener stages.
  • Constructor Details