ActiveProductHandler: Handler
Item | Value |
---|---|
Briefly | Brief description missing. |
Definition Path | ImprovingApp.ProductContext.Product.DefinedProductState.ActiveProductHandler |
View Source Link | product.riddl(118:15) |
\nerror "Product already created."
\n
\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
\nset field DefinedProductState.meta to "ProductContext.ProductMetaInfo"send event ProductDeleted to outlet ProductEventsSource.Eventsmorph entity ProductContext.Product to state DeletedProductState with record DeletedProduct
\n
\nerror "Product is already active"
\n
\nset field DefinedProductState.meta to "ProductContext.ProductMetaInfo"send event ProductInactivated to outlet ProductEventsSource.Eventsbecome entity ProductContext.Product to handler Product.DefinedProductState.InactiveProductHandler
\n
\n"yield ProductInfoResult message"
\n