OrchestrationResponder
public protocol OrchestrationResponder
A type capable of responding to Workflow actions.
-
Respond to the
Workflowlaunching.Declaration
Swift
func launch(to: AnyWorkflow.Element)Parameters
toPasses the
AnyWorkflow.ElementandFlowRepresentableMetadataso the responder can decide how to launch the first loaded instance. -
Respond to the
Workflowproceeding.Declaration
Swift
func proceed(to: AnyWorkflow.Element, from: AnyWorkflow.Element)Parameters
toPasses the
AnyWorkflow.ElementandFlowRepresentableMetadataso the responder can decide how to proceed.fromPasses the
AnyWorkflow.ElementandFlowRepresentableMetadataso the responder has context on where to proceed from. -
Respond to the
Workflowbacking up.Declaration
Swift
func backUp(from: AnyWorkflow.Element, to: AnyWorkflow.Element)Parameters
toPasses the
AnyWorkflow.ElementandFlowRepresentableMetadataso the responder can decide how to back up.fromPasses the
AnyWorkflow.ElementandFlowRepresentableMetadataso the responder has context on where to back up from. -
Respond to the
Workflowgetting abandoned.Declaration
Swift
func abandon(_ workflow: AnyWorkflow, onFinish: (() -> Void)?)Parameters
workflowThe
AnyWorkflowthat is being abandoned.onFinishA closure that is executed when the responder is finished abandoning.
-
Respond to the
Workflowcompleting.Declaration
Swift
func complete(_ workflow: AnyWorkflow, passedArgs: AnyWorkflow.PassedArgs, onFinish: ((AnyWorkflow.PassedArgs) -> Void)?)Parameters
workflowThe
AnyWorkflowthat is being completed.passedArgsThe
AnyWorkflow.PassedArgsto be passed toonFinish.onFinishA closure that is executed when the responder is finished completing.
View on GitHub
OrchestrationResponder Protocol Reference