Persisting items in and deleting items from the local item store

The Process_Reviewed_Item collaboration template can enable saving an item in the local item store after its processing is complete.

Flow

The item saved in the local item store is then available to be used later for validation or back-up.

To enable persisting the item in the local item store, set the collaboration object's configuration property RETAIN_IN_LOCAL_STORE to true. The collaboration object passes the item with a Create verb to the local_store port to be passed to a collaboration object based on the ItemStore collaboration template, which actually stores the item. The Process_Reviewed_Item collaboration object enables saving the item to the item store after the item has been sent to the Sync port and to the respond_to port.

The Process_Reviewed_Item collaboration object can enable deletion of the Retail_Item from the local item store. To enable deletion, set the configuration property DELETE_FROM_LOCAL_STORE to true. The collaboration object passes the item with a Delete verb to the local_store port to be passed to a collaboration object based on the ItemStore collaboration template, which actually deletes the item.
Note: If the item has not been stored by another collaboration object and, therefore, does not have to be deleted, set the property DELETE_FROM_LOCAL_STORE to false.

Parent topic: Overall process logic