DraftStoreHandler: Handler
Item | Value |
---|---|
Briefly | Brief description missing. |
Definition Path | ImprovingApp.StoreContext.Store.DraftStore.DraftStoreHandler |
View Source Link | Store.riddl(80:15) |
\nerror "Store already created"
\n
\n"copy fields from info to Draft info fields""adjust meta fields to reflect the change""yield the StoreUpdated event"
\n
\n"remove all attributes not defined in the Deleted state""adjust meta fields to reflect change""yield the StoreDeleted event"morph entity StoreContext.Store to state DeletedStore with record DeletedStoreData
\n
\n"yield the StoreIsReady event"morph entity StoreContext.Store to state CreatedStore with record CreatedStoreData
\n
\nerror "store must be moved to the Ready state. All required attributes must be provided."
\n
```\n
### _OnMessageClause command AddProductsToStore_
#### Statements
```\n"add provided products to store definition""and adjust meta fields to reflect the change""yield the ProductsAddedToStore event"//TODO: Add cases where there is invalid product
```\n
### _OnMessageClause command RemoveProductsFromStore_
#### Statements
```\n"remove provided products from store""adjust meta fields to reflect the change""yield the ProductsRemovedFromStore event"//TODO: Add case where product to be removed doesn't exist in store
```\n
## *Used By None*
## *Uses Nothing*