Methods and apparatus for integration of declarative rule-based processing with procedural programming in a digital data-processing evironment
First Claim
1. A method of unifying one or more declarative rules and a plurality of procedural instructions in a procedural computational system the method comprising the steps of:
- upon execution of a procedural instruction that changes one or more variables, updating one or more other variables participating in one or more declarative rules so as to maintain relationships imposed by said one or more rules among said variables,wherein said updating of said one or more other variables is performed prior to execution of other procedural instructions.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides methods and systems for integrating a procedural computational model with a declarative computational model. For example, in one aspect, the present invention provides a method for integrating a plurality of procedural instructions in a procedural computational system with a plurality of declarative rules in a declarative computational system. In such a method, for each of the procedural instructions operating on one or more variables, a hash table indexed by variable names is utilized to determine whether any of these variables participate in at least one of the declarative rules. Upon execution of a procedural instruction that changes a variable participating in a declarative rule, other variables associated with the rule are updated so as to maintain a relationship imposed by the rule among the variables. The updating of the other variables is performed prior to execution of other procedural instructions. Further, for each of the updated values, changes associated with to updated variable are propagated to other rules, if any, in which the updated variable participates. The propagation of the change can be accomplished by modifying values of variables other than the updated variable so as to maintain relationships defined by these other rules. The integrated computational systems of the invention can find applications, for example, in workflow processing.
-
Citations
31 Claims
-
1. A method of unifying one or more declarative rules and a plurality of procedural instructions in a procedural computational system the method comprising the steps of:
-
upon execution of a procedural instruction that changes one or more variables, updating one or more other variables participating in one or more declarative rules so as to maintain relationships imposed by said one or more rules among said variables, wherein said updating of said one or more other variables is performed prior to execution of other procedural instructions. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A method of unifying one or more declarative rules and a procedural computational system supporting object-oriented representation of data, the method comprising the steps of:
-
upon execution of a procedural instruction that changes one or more data in an object, updating one or more other data participating in one or more declarative rules, where said one or more other data are in said object and/or in other objects, so as to maintain relationships imposed by said one or more declarative rules among said data, wherein updating of said one or more other data is performed prior to execution of other procedural instructions. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)
-
-
27. A method of unifying one or more declarative rules and a procedural computational system, the method comprising the steps of:
compiling a procedural instruction for assignment of a value to a variable so as to effect, upon execution of such instruction at runtime, updating of one or more other variables participating in one or more declarative rules so as to maintain consistency of relationships imposed by said one or more declarative rules among said variable to which such value is assigned and said one or more other variables, wherein that updating of the one or more other variables is performed prior to execution of other procedural instructions.
-
28. An integrated computational system, comprising
one or more digital data processors that execute a procedural facility for executing procedural instructions operating on one or more variables, a declarative facility coupled to operate on at least selected one of said variables so as to maintain one or more relationships among participating variables defined by one or more declarative rules, and a change tracking facility in communication with said procedural and declarative facilities, wherein upon execution of said procedural instructions, said change tracking facility detects changes, if any, in one or more variables participating in at least one of said declarative rules and reports one or more said changes to said declarative facility, said declarative facility updating one or more other variables participating in said at least one declarative rule, in response to said reported change, so as to maintain a relationship defined thereby, wherein that updating of the one or more other variables is performed prior to execution of other procedural instructions.
-
31. A method of unifying one or more declarative rules and a procedural computational system so as to render a plurality of instructions provided by said procedural system and a plurality of declarative rules mutually consistent, the method comprising the steps of:
-
upon execution of a procedural instruction modifying one or more variables, executing one or more declarative rules to update values of one or more other variables participating in said one or more rules, wherein said updating of values of other variables is deferred until at least one of said procedural instructions requires those one or more other variables.
-
Specification