GraphReFlyTS

API Reference

orchestrationMessageCommand()

Creates an orchestration message command.

Import

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

Signature

function orchestrationMessageCommand(
	message: MessageBusMessage<TPayload>,
	delivery: MessageBusDelivery,
	policy?: OrchestrationMessagingPolicy<TPayload, TCommand>,
): ProcessCommand<TCommand> | undefined

Parameters

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.

Returns

The orchestration message command result.

Example

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

Source

packages/ts/src/orchestration/messaging.ts