Type Aliases

The following type aliases are available globally.

Types

  • Handler that allows some custom action to be performed for AsyncProcessStep, with the return value used to drive control flow of the steps.

    Declaration

    Swift

    public typealias AsyncProcessStepHandler = (_ model: JSON, _ completion: @escaping (JSON, StepFlowResult) -> Void) -> Void

    Parameters

    model

    The model JSON dictionary.

    Return Value

    A tuple with the modified model and a StepFlowResult which allows control flow of the steps.

  • Callback that should be invoked when the step’s run method is complete, and can provides instruction on what to do next (e.g. proceed or fail).

    Declaration

    Swift

    public typealias StepCompletionCallback = (_ result: StepCompletionResult) -> Void

    Parameters

    result

    Result indicating what to do next (i.e. control flow instruction). The JSON model must be provided to pass onto the next step.

  • Handler that allows some custom action to be performed for ProcessStep, with the return value used to drive control flow of the steps.

    Declaration

    Swift

    public typealias ProcessStepHandler = (_ model: inout JSON) -> StepFlowResult

    Parameters

    model

    The model JSON dictionary which can be modified by the step.

    Return Value

    The StepFlowResult which allows control flow of the steps.

  • Callback invoked when a ScriptStep or AsyncScriptStep is finished.

    Declaration

    Swift

    public typealias ScriptStepHandler = (_ response: Any?, _ model: inout JSON) -> StepFlowResult

    Parameters

    response

    Data returned from JavaScript.

    model

    The model JSON dictionary which can be modified by the step.

    Return Value

    The StepFlowResult which allows control flow of the steps.