Package io.nflow.engine.listener
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 Summary
Fields Modifier and Type Field Description Map<Object,Object>dataStateless listeners can use data to pass information between listener stages.WorkflowDefinitiondefinitionThe definition of the workflow.WorkflowInstanceinstanceThe workflow instance.NextActionnextActionThe action to be taken after workflow state execution.StringoriginalStateThe name of the state of the workflow instance before processing.org.joda.time.DateTimestartThe time when the listener context was created.StateExecutionstateExecutionThe access point for the workflow instance-specific information.
-
Constructor Summary
Constructors Constructor Description ListenerContext(WorkflowDefinition definition, WorkflowInstance instance, StateExecution stateExecution)
-
-
-
Field Detail
-
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.
-
-
Constructor Detail
-
ListenerContext
public ListenerContext(WorkflowDefinition definition, WorkflowInstance instance, StateExecution stateExecution)
-
-