message
Back to Indexmessage(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
-
Capturing payments of an order
from {method = args => message ('order', 'capturePayments', args.orderNumber, {})} -
Creating a new order
from {method = args =>message ('order''create''new'{currencyCode = args.currencyCodeincludeTax = true})}