Class WorkflowLogContextListener
java.lang.Object
io.nflow.engine.workflow.executor.WorkflowLogContextListener
- All Implemented Interfaces:
WorkflowExecutorListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nflow.engine.listener.WorkflowExecutorListener
WorkflowExecutorListener.ListenerContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterFailure(WorkflowExecutorListener.ListenerContext listenerContext, Throwable throwable) Executed after state processing has failed and before persisting state.voidafterProcessing(WorkflowExecutorListener.ListenerContext listenerContext) Executed after state has been successfully processed and before persisting state.voidbeforeProcessing(WorkflowExecutorListener.ListenerContext listenerContext) Executed before state is processed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.nflow.engine.listener.WorkflowExecutorListener
handlePotentiallyStuck, process
-
Constructor Details
-
WorkflowLogContextListener
-
-
Method Details
-
beforeProcessing
Description copied from interface:WorkflowExecutorListenerExecuted before state is processed. Exceptions are logged but they do not affect workflow processing.- Specified by:
beforeProcessingin interfaceWorkflowExecutorListener- Parameters:
listenerContext- The listener context.
-
afterProcessing
Description copied from interface:WorkflowExecutorListenerExecuted after state has been successfully processed and before persisting state. Exceptions are logged but they do not affect workflow processing.- Specified by:
afterProcessingin interfaceWorkflowExecutorListener- Parameters:
listenerContext- The listener context.
-
afterFailure
public void afterFailure(WorkflowExecutorListener.ListenerContext listenerContext, Throwable throwable) Description copied from interface:WorkflowExecutorListenerExecuted after state processing has failed and before persisting state. Exceptions are logged but they do not affect workflow processing.- Specified by:
afterFailurein interfaceWorkflowExecutorListener- Parameters:
listenerContext- The listener context.throwable- The exception thrown by the state handler method.
-