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

ActiveProductHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.ProductContext.Product.DefinedProductState.ActiveProductHandler
View Source Linkproduct.riddl(118:15)

OnMessageClause command ProductContext.CreateProduct

Statements

\nerror "Product already created."\n

OnMessageClause command ProductContext.UpdateProductInfo

Statements

\n"Copy fields that are provided from UpdateProductInfo.info into DefinedProductState.info fields""adjust meta fields to reflect the change set""yield ProductInfoUpdated event with new info"\n

OnMessageClause command ProductContext.DeleteProduct

Statements

\nset field DefinedProductState.meta to "ProductContext.ProductMetaInfo"send event ProductDeleted to outlet ProductEventsSource.Eventsmorph entity ProductContext.Product to state DeletedProductState with record DeletedProduct\n

OnMessageClause command ProductContext.ActivateProduct

Statements

\nerror "Product is already active"\n

OnMessageClause command ProductContext.InactivateProduct

Statements

\nset field DefinedProductState.meta to "ProductContext.ProductMetaInfo"send event ProductInactivated to outlet ProductEventsSource.Eventsbecome entity ProductContext.Product to handler Product.DefinedProductState.InactiveProductHandler\n

OnMessageClause query GetProductInfo

Statements

\n"yield ProductInfoResult message"\n

Used By

Uses Nothing