Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "callbacks"

Index

Interfaces

Functions

Functions

Const execute

  • execute(flowKey: string, type: string, name: string, mapElementId: string, args: any[]): void
  • Execute a previously registered callback if a type & name are provided they will be checked against the registered callbacks first (in that order)

    Parameters

    • flowKey: string
    • type: string

      The type of context that callbacks are being executed in. Generally this is either the InvokeType in the invoke response from Boomi Flow e.g. FORWARD, WAIT, DONE, etc

    • name: string

      The name of the callback to execute

    • mapElementId: string

      The Map Element Id of the callback to execute. During normal flow execution this will be populated by the currentMapElementId from the invoke response

    • args: any[]

      Arguments to pass to the callback. During normal flow execution this will be the invoke response itself

    Returns void

Const register

  • register(flowKey: string, options: ICallback): void
  • Register a callback to be executed later

    Parameters

    Returns void

Const remove

  • remove(flowKey: string): void
  • Remove all callbacks

    Parameters

    • flowKey: string

    Returns void

Generated using TypeDoc