Skip to content
PACKAGES

orchestrationMessageCommand()

Creates an orchestration message command.

import { orchestrationMessageCommand } from "@graphrefly/ts/orchestration/messaging";
function orchestrationMessageCommand(
message: MessageBusMessage<TPayload>,
delivery: MessageBusDelivery,
policy?: OrchestrationMessagingPolicy<TPayload, TCommand>,
): ProcessCommand<TCommand> | undefined
ParameterTypeDescription
messageMessageBusMessage<TPayload>message value used by the helper.
deliveryMessageBusDeliverydelivery value used by the helper.
policyOrchestrationMessagingPolicy<TPayload, TCommand>Policy object used to admit, retry, or route work.

The orchestration message command result.

import { orchestrationMessageCommand } from "@graphrefly/ts/orchestration/messaging";

packages/ts/src/orchestration/messaging.ts