...
The System Manager will create a list of all the active addons that (a) are registered to the current pipeline, (b) are registered to an NVTGC that matches the NVTGC for the Request, and (c) have registered to the EvaluateBusinessRules event hook.
The System Manager will then attempt to execute an addon that has registered to the event hook.
If an addon reports that it has handled the event, System Manager will then validate the resulting recommendation.
If the recommendation is not valid, System Manager will route the request to the error queue for the pipeline.
If no addons report to have handled the event, then System Manager will move on to evaluating the pre-defined business rules instead.
Note |
---|
The ordering of the addons that are considered for this stage is not defined. If 2 addons register for this stage’s event hook, there is no way to guarantee which one will execute. It is recommended that only one addon registers to this event hook, for each NVTGC. |
For more information on how business rules work with the System Manager, see Business Rule Evaluation & the System Manager.
...
From the “Awaiting Pipeline Sending” Queue, the System Manager will pull all Borrowing Requests along with the Recommendation records that are linked to the Requests.
For each request, the System Manager will validate the Recommendation.
If the recommendation passes validation-
If the QueueTarget property of the Request’s Recommendation record is set, then System Manager will automatically route the request to the specified Queue.
If the QueueTaget is not set, the System Manager will populate the properties of the event argument and will trigger the addon that is specified in the Recommendation’s AddonTarget property.
If the addon does not handle the event or does not route the Request, System Manager will route the Request to the “Awaiting Pipeline Error Review”. The result of this stage concludes the Request’s route through the Decision Support Pipeline unless the request is routed back to one of the input queues of the Decision Support Pipeline.
If the recommendation doesn't pass validation- the request will be routed to the “Awaiting Pipeline Error Review” queue if its Recommendation does not pass validation.
If neither target is specified, then the recommendation doesn’t specify any actions that the Automation Decision stage can take, which describes an Error.
If both targets specified, this is an ambiguous recommendation, which is an error since the Automation Decision stage can’t do both.
Note |
---|
Addons that register to the AutomationDecision event hook should also register to the GenerateFulfillmentData event hook. If a DecisionSupport addon does not register to the GenerateFulfillmentData event hook, it will never generate any fulfillment options, so System Manager will never ask it to run during the AutomationDecision event. |
Note |
---|
Addons are expected to route Requests during this stage of the pipeline. If the DecisionSupport addon does not route the Request, System Manager will route the Request to the “Awaiting Pipeline Error Review” Queue once the addon has completed. |