Let's understand how rules are defined. You have implemented the SalesToContract
process for quote fulfillment. You have quote data to be entered while the sales representative user initiates the process. You have to mention the Customer Type while filling the quote data. Customers are categorized as—Premium, Gold, Silver, and New.
Business Users have defined some rules, such as:
Level 1 and Level 2 approval in the management chain is also defined in the rule. The level of management approval is defined by the rule itself. The discount is calculated in the rule, based on quantity.
Business Analyst Review
is required.Have a look at Rule 1, Check Customer. You need to have a Business object to hold values of Level 1 and Level 2 flags, level details, modified discount, and so on.
Look at Quote.xsd
, which you have used for the implementation of the process. You can find the ApprovalFlow element of the complex type ApprovalFlowType, as shown in the following screenshot:
You will add this Business object to the process.
In this section, you will deal with the creation of Business objects:
ApprovalFlow
, check Based on external schema, and select ApprovalFlow from Quote.xsd schema:ApprovalFlow
, select Type as Component, and select ApprovalFlow as the component.When you implement business rules, such as Check Customer and Discount Check, you will use the Business and Process objects as output facts. In the Rule designer, you make Business objects and their methods known to Oracle Business rules, using fact types that are part of a data model. You can create fact types and Bucketsets before you create rules. The fact that you have created just now is an XML fact, as it's imported from existing sources by specifying XML Schema (Quote.xsd
).
In Oracle Business rules, facts that you can run against the rules are Data objects that have been asserted. Each object instance corresponds to a single fact. Elements and types defined in XML Schema can be imported into the data model so that instances of types can be created, asserted, modified, and retracted by rules.
3.141.197.251