AS3 Routing Rules

Routing rules initiate actions automatically when a message is added to a mailbox. Automatic routing ensures that the rule is evaluated at least once.

Note: By default, the evaluation of automatic rules is disabled. You need to enable them from the schedule.

When a message is added to a mailbox, any rules established for the mailbox are evaluated automatically. After evaluating automatic routing rules, Sterling B2B Integrator starts any business processes that the rules are configured to run.

When a routing rule is evaluated, it searches the mailboxes defined in the rule for message names that match the pattern defined in the rule. When a match is found, the routing rule notifies the business process or contract specified in the routing rule. Depending on how the business process is defined, it may extract and process the message, extract the message and pass it to another application for processing, or notify another application to extract and process the message. If routing rules are set to be evaluated manually, they can be evaluated by a user or a business process.

You need a routing rule for both the Incoming AS3 Message (InboundAS3) and the Incoming AS3 MDN (InboundMDN) mailboxes. This routing rule is used to invoke predefined business processes to process the AS3 messages and MDNs.

If you chose to have the necessary routing rule automatically created during the partner profile creation process, then the routing rule created is named Routing Rule created by the AS3 auto create option. This routing rule is created during the auto-creation process and the Incoming AS3 Message (InboundAS3) and the Incoming AS3 MDN (InboundMDN) mailboxes are attached to the rule. If this routing rule already exists, the AS3 system just adds the two mailboxes to the rule. The routing rule is set up to invoke the As3MbxProcessing business process.

If you do not use the auto-create option when you create trading partner profiles, you need to create your own routing rules to invoke the As3MbxProcessing business process for the Incoming AS3 Message (InboundAS3) and the Incoming AS3 MDN (InboundMDN) mailboxes.

See Create an AS3 Profile for more information on creating the rule automatically.

Regardless of whether the routing rule is created automatically or manually, you need to schedule the Mailbox Evaluate All Automatic Routing Rules service to be executed so that it can evaluate all mailbox rules designated for automatic processing, including the Routing Rule created by the AS3 auto create option routing rule. In addition to this, you need to assign a user or group to the routing rule. The choice of the user or group should match the user or group assigned for the mailboxes, that is InboundAS3 and InboundMDN mailboxes. For auto created mailboxes, the admin user is assigned to the mailboxes. You need to manually assign the user or group to the routing rule because Sterling B2B Integrator allows existing mailboxes to be used. The existing mailboxes may have different user or group assigned to them.