Simple Logging Workflow Interceptor
A WorkflowInterceptor that just prints all method calls using log.
Constructors
SimpleLoggingWorkflowInterceptor
Link copied to clipboard
fun SimpleLoggingWorkflowInterceptor()
Content copied to clipboard
Functions
on Initial State
Link copied to clipboard
open override fun <P, S> onInitialState(props: P, snapshot: Snapshot?, proceed: (P, Snapshot?) -> S, session: WorkflowInterceptor.WorkflowSession): S
Content copied to clipboard
Intercepts calls to StatefulWorkflow.initialState.
on Props Changed
Link copied to clipboard
on Render
Link copied to clipboard
Intercepts calls to StatefulWorkflow.render.
on Session Started
Link copied to clipboard
open override fun onSessionStarted(workflowScope: CoroutineScope, session: WorkflowInterceptor.WorkflowSession)
Content copied to clipboard
Called when the session is starting, before onInitialState.
on Snapshot State
Link copied to clipboard
open override fun <S> onSnapshotState(state: S, proceed: (S) -> Snapshot?, session: WorkflowInterceptor.WorkflowSession): Snapshot?
Content copied to clipboard
Intercepts calls to StatefulWorkflow.snapshotState.