Download User Manual

Transcript
OpenRules, Inc.
OpenRules® User Manual
DecisionTable2 ........................................................................................................... 43
Business Rules Defined on Collections of Objects............................................................... 44
Decision Tables for Comparing Ranking Lists ..................................................................... 46
Rule Tables ............................................................................................................... 47
Simple Rule Table ............................................................................................................. 48
How Rule Tables Are Organized ........................................................................................ 50
Separating Business and Technical Information ................................................................. 53
How Rule Tables Are Executed .......................................................................................... 56
Relationships between Rules inside Rule Tables ....................................................... 56
Multi-Hit Rule Tables .................................................................................................. 57
Rules Overrides in Multi-Hit Rule Tables ................................................................... 58
Single-Hit Rule Tables ................................................................................................. 60
Rule Sequences .......................................................................................................... 61
Relationships among Rule Tables............................................................................... 62
Simple AND / OR Conditions in Rule Tables ....................................................................... 63
Horizontal and Vertical Rule Tables ................................................................................... 64
Merging Cells.................................................................................................................... 64
Sub-Columns and Sub-Rows for Dynamic Arrays ................................................................ 65
Using Expressions inside Rule Tables ................................................................................. 66
Integer and Real Intervals .......................................................................................... 66
Comparing Integer and Real Numbers ....................................................................... 68
Using Comparison Operators inside Rule Tables ....................................................... 69
Comparing Dates ........................................................................................................ 70
Comparing Boolean Values ........................................................................................ 71
Representing String Domains ..................................................................................... 72
Representing Domains of Numbers ........................................................................... 73
Using Java Expressions ............................................................................................... 73
Expanding and Customizing Predefined Types .......................................................... 75
Performance Considerations...................................................................................... 75
Rule Templates ......................................................................................................... 75
Simple Rules Templates .................................................................................................... 76
Defining Default Rules within Templates ........................................................................... 77
Templates with Default Rules for Multi-Hit Tables .................................................... 77
Templates with Default Rules for Single-Hit Tables ................................................... 78
Partial Template Implementation ..................................................................................... 79
Templates with Optional Conditions and Actions............................................................... 81
Templates for the Default Decision Tables ......................................................................... 82
Decision Templates .................................................................................................... 85
3