Oracle® Business Rules User's Guide
10g Release 3 (10.1.3) B15986-01 |
|
![]() Previous |
![]() Next |
This appendix contains frequently asked questions about Oracle Business Rules. Answers to each question are provided in each of the following categories:
This section addresses frequently asked questions relating to the semantics of Rules operations in Oracle Business Rules.
The object was modified between the time the rule was activated and the time the rule was fired (executed), and the object was not re-asserted in the Rules Engine.
Objects (Java or RL) must be asserted as facts in the Rules Engine before they are used in rule evaluations. When an object that has been asserted as a fact is modified, either in the action of a rule or by something external to the Rules Engine (presumably by the application), the object must be re-asserted in the Rules Engine in order for the current object state to be reflected in the Rules Engine and thus in the rule evaluation. If this is not done, the application and Rules Engine are in an inconsistent state which can lead to unexpected behavior.
A Java bean may be written to support PropertyChangeListener
so that the Rules Engine can automatically maintain a consistent state when a bean property us update. For more information, see Section 1.3.4.1, "Java Fact Type Definitions".
The one exception to this rule is for an object whose content is not being evaluated; that is, the Rules Engine does not contain a rule that tests or accesses any method or property of that object. One example of such a case is an object used to accumulate results from rule evaluations.
Tip: Suppose you have a rule that produces a sum from a collection of facts. Re-asserting the facts whose values are being summed yields an incorrect result in the fact containing the sum. Make sure you also re-assert the rule that produces the sum. |
The object must be re-asserted in the Rules Engine. Therefore, the Rules Engine did not re-evaluate any rule conditions and did not activate any rules. For more information, refer to Section C.1.1.
See Appendix A in Oracle Business Rules Language Reference Guide.
Oracle Business Rules support requires the JAR files listed in Table C-1. All paths are relative to $ORACLE_HOME
.
Table C-1 Oracle Business Rules Required JAR Files
JAR File | Description |
---|---|
|
The Oracle Business Rules Rules Engine library. This is the Java API used to instantiate and interact with the Rules Engine. |
|
Rules Engine Dynamic Monitoring Service (DMS) support. This file is required if DMS is enabled for a |
|
The Oracle Business Rules SDK. This is the Java API used to programatically author rules. |
|
The Oracle Business Rules SDK library for support of WebDAV repositories. This file is required when using the SDK with a WebDAV repository. |
|
The WebDAV client library. This file is required when using the SDK with a WebDAV repository. |
|
This file is required to support authentication with a repository such as a WebDAV repository. |
|
This file is required to support authentication with a repository such as a WebDAV repository. |
|
The standard JSR-94 library. |
|
The Oracle Business Rules JSR-94 implementation. |
|
This file is required by the Rules SDK. |
|
This file is required by the Rules SDK. |
|
This file is required when using the Rules SDK with a WebDAV repository. |