Adding customized code to the ItemValidation collaboration template

Iinformation on how to add custom logic to the ItemValidation collaboration template.

Description

The ItemValidation collaboration template contains a subdiagram called Message Type Processing that can be customized to contain any desired logic. 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.

Related information

For more information about the collaboration template and business object mentioned, see the following: Also, refer to the Installation guide for detailed information on creating port connections between collaboration objects and between collaboration objects and connectors.

Parent topic: Solution Development Guide