public class WorkflowExecutionListenerImpl extends ExecutionListenerOverrideBase implements WorkflowExecutionListener, ExecutionListener
WorkflowExecutionListener
methods to maintain workflow execution
context data while executing workflows, allowing the ContextLogger to have proper context.Modifier | Constructor and Description |
---|---|
|
WorkflowExecutionListenerImpl(FailedNodesListener failedNodesListener,
ContextLogger logger,
boolean terse,
java.lang.String logFormat) |
protected |
WorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate) |
Modifier and Type | Method and Description |
---|---|
void |
beginExecuteNodeStep(ExecutionContext context,
NodeStepExecutionItem item,
INodeEntry node)
Begin execution of a node step
|
void |
beginWorkflowExecution(StepExecutionContext executionContext,
WorkflowExecutionItem item) |
void |
beginWorkflowItem(int step,
StepExecutionItem item) |
void |
beginWorkflowItemErrorHandler(int step,
StepExecutionItem item) |
ExecutionListenerOverride |
createOverride() |
void |
event(java.lang.String eventType,
java.lang.String message,
java.util.Map eventMeta) |
void |
finishExecuteNodeStep(NodeStepResult result,
ExecutionContext context,
StepExecutionItem item,
INodeEntry node)
Finish execution of a node step
|
void |
finishWorkflowExecution(WorkflowExecutionResult result,
StepExecutionContext executionContext,
WorkflowExecutionItem item) |
void |
finishWorkflowItem(int step,
StepExecutionItem item,
StepExecutionResult result) |
void |
finishWorkflowItemErrorHandler(int step,
StepExecutionItem item,
StepExecutionResult result) |
java.util.Map<java.lang.String,java.lang.String> |
getContext() |
java.util.Map<java.lang.String,java.lang.String> |
getLoggingContext()
Method should be overridden
|
void |
log(int level,
java.lang.String message)
Log a message
|
void |
log(int level,
java.lang.String message,
java.util.Map<java.lang.String,java.lang.String> data) |
beginFileCopyFile, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, beginStepExecution, finishFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, finishStepExecution, getFailedNodesListener, getLogFormat, isTerse, setFailedNodesListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginStepExecution, finishStepExecution
beginFileCopyFile, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, event, finishFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, getFailedNodesListener, getLogFormat, isTerse, log
protected WorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate)
public WorkflowExecutionListenerImpl(FailedNodesListener failedNodesListener, ContextLogger logger, boolean terse, java.lang.String logFormat)
public void beginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
WorkflowExecutionListener
beginExecuteNodeStep
in interface WorkflowExecutionListener
beginExecuteNodeStep
in class ExecutionListenerOverrideBase
context
- contextitem
- stepnode
- nodepublic void finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
WorkflowExecutionListener
finishExecuteNodeStep
in interface WorkflowExecutionListener
finishExecuteNodeStep
in class ExecutionListenerOverrideBase
result
- resultcontext
- contextitem
- stepnode
- nodepublic java.util.Map<java.lang.String,java.lang.String> getLoggingContext()
ExecutionListenerOverrideBase
getLoggingContext
in interface ContextLoggerExecutionListener
getLoggingContext
in class ExecutionListenerOverrideBase
public void beginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)
beginWorkflowExecution
in interface WorkflowExecutionListener
public void finishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)
finishWorkflowExecution
in interface WorkflowExecutionListener
public void beginWorkflowItem(int step, StepExecutionItem item)
beginWorkflowItem
in interface WorkflowExecutionListener
public void beginWorkflowItemErrorHandler(int step, StepExecutionItem item)
beginWorkflowItemErrorHandler
in interface WorkflowExecutionListener
public void finishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)
finishWorkflowItem
in interface WorkflowExecutionListener
public void finishWorkflowItemErrorHandler(int step, StepExecutionItem item, StepExecutionResult result)
finishWorkflowItemErrorHandler
in interface WorkflowExecutionListener
public ExecutionListenerOverride createOverride()
createOverride
in interface ExecutionListener
public final void log(int level, java.lang.String message)
ExecutionListener
log
in interface ExecutionListener
log
in interface PluginLogger
level
- the log levelmessage
- Message being logged. null
messages are not logged, however, zero-length strings
are.public void event(java.lang.String eventType, java.lang.String message, java.util.Map eventMeta)
event
in interface ExecutionListener
public void log(int level, java.lang.String message, java.util.Map<java.lang.String,java.lang.String> data)
public java.util.Map<java.lang.String,java.lang.String> getContext()
getContext
in interface Contextual