The following section highlights the logic in the base algorithm type Apply Form Rules (C1-FRM-APPRL). It has been designed to call the algorithms plugged into the Apply Rule plug-in spot for each rule linked to the form type for a given rule event. This algorithm type should be plugged into the Business Object Status - Enter plug-in spot for each state that requires rules to be executed.
At a high level, the base algorithm follows these steps
Read the form data and store it in memory
Find the form rule groups linked to the input form type and rule event. For each group in sequence order, retrieve its Active rules in sequence order.
For each rule,
Execute its Apply Rule algorithm
Check the returned value of Rule Action. If the action is Terminate, terminate overall processing; otherwise continue on to the next rule.
When processing is complete,
Update the form using the data updated in memory by the rule algorithms
If exception processing applies (for validation rules) and the exception list is populated, compare the current list of exceptions to the existing exceptions for the form, if any. Any exceptions that are no longer in the current list are closed. Add any newly-reported exceptions to the form exception table.
No updates. The individual apply rule algorithms should not do any updates to the form data in the database for performance reasons. These algorithms simply update the internal form data area and exception information in memory with new values. The Apply Form Rule BO enter plug-in is responsible for updating the form and creating or closing form exceptions.
Copyright © 2007, 2016, Oracle and/or its affiliates. All rights reserved. Documentation build: 2.5.2016 10:21:45 [T1_1454696505000]