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
ListenerContext instance is created at start of workflow state execution and passed to listener's
life-cycle methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionStateless listeners can use data to pass information between listener stages.final WorkflowDefinitionThe definition of the workflow.final WorkflowInstanceThe workflow instance.The action to be taken after workflow state execution.final StringThe name of the state of the workflow instance before processing.final org.joda.time.DateTimeThe time when the listener context was created.final StateExecutionThe access point for the workflow instance-specific information. -
Constructor Summary
ConstructorsConstructorDescriptionListenerContext(WorkflowDefinition definition, WorkflowInstance instance, StateExecution stateExecution) -
Method Summary
Methods inherited from class io.nflow.engine.model.ModelObject
equals, hashCode, toString
-
Field Details
-
start
public final org.joda.time.DateTime startThe time when the listener context was created. -
definition
The definition of the workflow. -
originalState
The name of the state of the workflow instance before processing. -
instance
The workflow instance. -
stateExecution
The access point for the workflow instance-specific information. -
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
Stateless listeners can use data to pass information between listener stages.
-
-
Constructor Details
-
ListenerContext
public ListenerContext(WorkflowDefinition definition, WorkflowInstance instance, StateExecution stateExecution)
-