RIDDL Specification For improving.app
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

DraftOrderHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.OrderContext.Order.Draft.DraftOrderHandler
View Source LinkOrder.riddl(75:15)

OnMessageClause command CreateOrder

Statements

\nerror "Order has already been created."\n

OnMessageClause command UpdateOrderInfo

Statements

\n"copy fields from the UpdateOrderInfo command into the Draft Order""adjust meta fields to reflect the change set""yield OrderInfoUpdated event"\n

OnMessageClause command SetToPendingOrder

Statements

\n"morph order to Pending state""adjust meta fields to reflect change set""yield PendingOrderSet event"\n

OnMessageClause command SetToInProcessOrder

Statements

\nerror "Draft orders may not transition to the InProcess state"\n

OnMessageClause command SetToReadyOrder

Statements

\nerror "Draft orders may not transition to the Ready state"\n

OnMessageClause command DeliverOrder

Statements

\nerror "Draft orders may not transition to the Delivered state"\n

OnMessageClause command CancelOrder

Statements

\n"morph order to Cancelled state""adjust meta fields to reflect change set""yield OrderCancelled event"\n

OnMessageClause query GetOrderInfo

Statements

\n"yield OrderInfoResult message"\n

Used By None

Uses Nothing