Class WorkflowLogContextListener
- java.lang.Object
-
- io.nflow.engine.workflow.executor.WorkflowLogContextListener
-
- All Implemented Interfaces:
WorkflowExecutorListener
public class WorkflowLogContextListener extends Object implements WorkflowExecutorListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.nflow.engine.listener.WorkflowExecutorListener
WorkflowExecutorListener.ListenerContext
-
-
Constructor Summary
Constructors Constructor Description WorkflowLogContextListener(String logContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterFailure(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, wait
-
Methods inherited from interface io.nflow.engine.listener.WorkflowExecutorListener
handlePotentiallyStuck, process
-
-
-
-
Constructor Detail
-
WorkflowLogContextListener
public WorkflowLogContextListener(String logContext)
-
-
Method Detail
-
beforeProcessing
public void beforeProcessing(WorkflowExecutorListener.ListenerContext listenerContext)
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
public void afterProcessing(WorkflowExecutorListener.ListenerContext listenerContext)
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.
-
-