| Modifier and Type | Method and Description |
|---|---|
Flow |
Flow.addTerminationHook(Flows.SerConsumer<Flow.FlowState> hook)
Adds a termination hook that will be executed upon completion of the whole flow; the provided hook will
received input according to how the flow terminated.
|
static Flow |
Flows.currentFlow()
Return the current flow runtime - this will create a new flow if the current is not already bound to the invocation or
an existing flow if one is already bound to the current invocation or if the invocation was triggered from within a flow stage.
|
Flow |
Flows.FlowSource.currentFlow() |
Copyright © 2021. All rights reserved.