Trading Networks 10.3 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks | Trading Networks Attributes and EDI Documents | Managing Custom Attributes for EDI Documents | Defining a Processing Rule that Uses Your Custom Attribute as Criteria
 
Defining a Processing Rule that Uses Your Custom Attribute as Criteria
To use the custom attributes you defined as criteria in a processing rule, you need to:
*Associate custom attributes with EDI document types, as described in Managing Custom Attributes for EDI Documents.
*Create a processing rule to process the document, considering the following:
*Do not use content-based processing.
*Leave the Extended Criteria tab of the Processing Rules screen blank.
*In the Execute a Service processing rule, invoke the service that sets the values of the custom attributes, as described in Setting the Attribute Values at Run Time.
*Ensure that the service invokes the wm.tn.reroute service so that Trading Networks selects another processing rule for the document. (The next processing rule uses your custom attributes as criteria.)
*Create a processing rule that specifies the custom attributes as criteria in the Extended Criteria tab.
Note:
When ordering your processing rules, be sure to list the processing rule that uses your custom attributes as criteria before the processing rule that sets the attribute values. This ensures that Trading Networks will skip the processing rule that uses the custom attribute criteria the first time the document is processed but select it the second time.