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,
ExecutionLogger logger) |
protected |
WorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate,
ExecutionLogger logger) |
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) |
ExecutionLogger |
getLogger() |
void |
ignoreErrors(boolean value)
Ignore error messages and transform them into standard output
|
void |
log(int level,
java.lang.String message)
Log a message at a given level
|
void |
log(int level,
java.lang.String message,
java.util.Map eventMeta)
Log a message at a given level, with additional metadata
|
beginFileCopyFile, beginFileCopyFile, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, beginStepExecution, finishFileCopy, finishMultiFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, finishStepExecution, getFailedNodesListener, setFailedNodesListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginStepExecution, finishStepExecution
beginFileCopyFile, beginFileCopyFile, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, finishFileCopy, finishMultiFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, getFailedNodesListener
event, log, log
protected WorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate, ExecutionLogger logger)
public WorkflowExecutionListenerImpl(FailedNodesListener failedNodesListener, ExecutionLogger logger)
public void ignoreErrors(boolean value)
ExecutionListener
ignoreErrors
in interface ExecutionListener
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 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 void event(java.lang.String eventType, java.lang.String message, java.util.Map eventMeta)
eventType
- event typemessage
- Message being logged. null
messages are not logged, however, zero-length strings
are.eventMeta
- metadatapublic void log(int level, java.lang.String message)
ExecutionLogger
level
- the log level, from 0 to 5, where 0 is "error" and 5 is "debug"message
- Message being logged. null
messages are not logged, however, zero-length strings
are.public void log(int level, java.lang.String message, java.util.Map eventMeta)
ExecutionLogger
level
- the log level, from 0 to 5, where 0 is "error" and 5 is "debug"message
- Message being logged. null
messages are not logged, however, zero-length strings
are.eventMeta
- metadatapublic ExecutionLogger getLogger()