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