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

InactiveProductHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.ProductContext.Product.DefinedProductState.InactiveProductHandler
View Source Linkproduct.riddl(144: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 ProductContext.Product.DeletedProductState with record DeletedProduct\n

OnMessageClause command ProductContext.ActivateProduct

Statements

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

OnMessageClause command ProductContext.InactivateProduct

Statements

\nerror "Product is already Inactive"\n

OnMessageClause query GetProductInfo

Statements

\n"yield ProductInfoResult message"\n

Used By

Uses Nothing