Skip to content

message

Back to Index
message(actorType: text, externalId: text, messageType: text, body: value)

message effects allows a Reactor to send a message to an actor and handle the response.

Return Type

By default the effect will return the response from the given actor.

Handling Return Value

message supports then callback handler.

Examples

  1. Capturing payments of an order

    from {
    method = args => message ('order', 'capturePayments', args.orderNumber, {})
    }
  2. Creating a new order

    from {
    method = args =>
    message (
    'order'
    'create'
    'new'
    {
    currencyCode = args.currencyCode
    includeTax = true
    }
    )
    }
Back to Index