A dictionary is an Oracle Business rules container for facts, functions, globals, Bucketsets, links, decision functions, and rulesets. A dictionary is an XML file that stores the application's rulesets and the Data model. Dictionaries can link to other dictionaries. Oracle JDeveloper creates an Oracle Business rules dictionary in a ''rules'' file.
Rules dictionaries are use to hold rule facts, functions, tables, and other components.
In this section, you will create a rules dictionary:
CheckCustomer
.quote
and ApprovalFlow
as input and output for the CustomerCheck rule.CheckCustomer.rules
file created. This is called a rules dictionary.When you create a dictionary, and if you go to the Application navigator, you can find that the following Decision component defining files are created:
.decs
): The business rule metadata file provides information about the location of the component business rules dictionary and the Decision services exposed by the Decision component. The business rule metadata file (business_rule_name.decs
) defines the contract between the components involved in the interaction of the business rule with the design time and backend Oracle Rules Engine. The business_rule_name.decs
file rule EngineProvider
element includes details about the rules dictionary to use:<ruleEngineProvider name="OracleRulesSDK" provider="Oracle_11.0.0.0.0"> <repository type="SCA-Archive"> <path>SalesToContractDemo/oracle/rules/salestocontractdemo/CheckCustomer.rules</path> </repository> </ruleEngineProvider>
A repository-type SCA archive indicates that that the rules dictionary is located in the service component architecture archive. The path is relative and interpreted differently by the following:
Oramds:/SalesToContractComposite/oracle/rules/ CheckCustomer.rules
Runtime (business rule service engine): The business rule service engine uses the Oracle Business rules SDK Rule Repository API to open the rules dictionary located in MDS. The composite name prefix, is removed from the path and the metadata manager assumes the existence of oracle/rules/CheckCustomer.rules
, relative to the composite home directory.
A decision service is a web service (or SOA) enabler of business rules. It is a service in the sense of a Web service, thus opening the world of business rules to service-oriented architectures (SOA).
.component
): An SCA business_rule_name.component
type file is included with each Decision component. This file lists the services exposed by the business rules service component.composite.xml
is created for a Decision component. The business rules service engine uses the information from this implementation type to process requests for the Service Engine. From an SCA perspective, a Decision component is a new implementation type.<component name="CheckCustomer"> <implementation.decisionsrc="CheckCustomer.decs"/> </component>
18.216.27.251