Persisting an object to a local item store

The ItemValidation collaboration template can persist the Retail_Item business object to a local store. .

Description

The ItemValidation collaboration template can accommodates the ability to persist the Retail_Item business object to a local store. This ability is enabled in an ItemValidation collaboration object by the setting for the RETAIN_ITEM_IN_LOCAL_STORE configuration property. The collaboration object accommodates persisting the business object by sending it to its LocalItemStore port. The LocalItemStore port can then be bound to a persistence mechanism, such as a collaboration object based on the ItemStore collaboration template.

If the item is rejected by the business policy code (see Validating an object against customized business policy rules), or if an error is detected during other ItemValidation collaboration processing, the ItemValidation collaboration object does not direct processing to the LocalItemStore port. Instead, it changes the value of the Retail_Item business object's attribute named in the ITEM_STATUS_ATTRIBUTE configuration property to Error and returns the item to the calling collaboration object.

Parent topic: Overall process logic