Adding customized code to the collaboration template

The ItemValidation collaboration template contains a subdiagram called Message Type Processing that can be customized to contain any desired logic.

Description

After including code in this subdiagram, enable it to execute for specific commands attached to a Retail_Item by specifying those commands in the ItemValidation collaboration object's MESSAGE_TYPE_PROCESSING_CMDS configuration property.
The subdiagram logic examines the value for the Retail_Item business object's attribute named in the ItemValidation collaboration object's ITEM_COMMAND_ATTRIBUTE configuration property against the values specified in its MESSAGE_TYPE_PROCESSING_CMDS configuration property. If the value for the attribute in the ITEM_COMMAND_ATTRIBUTE property is specified in the MESSAGE_TYPE_PROCESSING_CMDS property, the ItemValidation collaboration object executes the customized code in the Message Type Processing subdiagram.
Note: The code contained in the Message Type Processing subdiagram does not replace the code in the File Missing Attribute Logic or Custom Missing Attribute Logic subdiagrams.

Parent topic: Overall process logic