orchestrationMessageCommand()
Creates an orchestration message command.
Import
Section titled “Import”import { orchestrationMessageCommand } from "@graphrefly/ts/orchestration/messaging";Signature
Section titled “Signature”function orchestrationMessageCommand( message: MessageBusMessage<TPayload>, delivery: MessageBusDelivery, policy?: OrchestrationMessagingPolicy<TPayload, TCommand>,): ProcessCommand<TCommand> | undefinedParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
message | MessageBusMessage<TPayload> | message value used by the helper. |
delivery | MessageBusDelivery | delivery value used by the helper. |
policy | OrchestrationMessagingPolicy<TPayload, TCommand> | Policy object used to admit, retry, or route work. |
Returns
Section titled “Returns”The orchestration message command result.
Example
Section titled “Example”import { orchestrationMessageCommand } from "@graphrefly/ts/orchestration/messaging";Source
Section titled “Source”packages/ts/src/orchestration/messaging.ts