You are on page 1of 17

<Insert Picture Here>

Oracle Business Rules

Oracle Business Rules Overview


True inference rules engine (based on Jess) Available and usable independent of Oracle SOA/BPM Tight integration with Oracle SOA/BPM Usually positioned and used as part of SOA/BPM

Copyright 2011 Oracle Corporation. All Rights Reserved

Oracle Business Rules 11g


Easier to use Date, Time, Effectivity Aggregates Decision Tables Dictionary Links, and many more Web based business user authoring
3 Copyright 2011 Oracle Corporation. All Rights Reserved

Business Rules in SOA Composite


Different Usage Scenarios

Stand Alone

From Human Task From BPEL

Copyright 2011 Oracle Corporation. All Rights Reserved

Tight Integration with BPEL


Create rule dictionary from within BPEL Leverage BPEL variables and project schemas Dictionary completely setup for writing rules i.e. facts created, etc.

Copyright 2011 Oracle Corporation. All Rights Reserved

Date and Time Support


Rule Activation and Effective Dates Mark rules as active/in-active Specify periods when rule is effective Date and Time based rules Date comparisons Current Date

Copyright 2011 Oracle Corporation. All Rights Reserved

Aggregates
Example: If an Order has more than 5 items with price > 1000, require manual approval Out-of-box aggregation functions: count, average, minimum, maximum, sum, collection Custom aggregation function

Copyright 2011 Oracle Corporation. All Rights Reserved

Decision Tables

Copyright 2011 Oracle Corporation. All Rights Reserved

Decision Tables

If CurrentDate.date = During Sale and CustomerOrder.vipStatus = Platinum or Silver and CustomerOrder.totalAmount >= 700 Then Discount = 15 and status = APPROVED

Copyright 2011 Oracle Corporation. All Rights Reserved

Decision Tables

Set of Values or Ranges to compare with

10

Copyright 2011 Oracle Corporation. All Rights Reserved

Decision Tables

List of Values or Ranges

11

Copyright 2011 Oracle Corporation. All Rights Reserved

Decision Tables

Resolve overlap between R1 and R3 by overriding R3 with R1

12

Copyright 2011 Oracle Corporation. All Rights Reserved

Decision Function
Simplifies exposing rules to be invoked as Decision Service or otherwise Sequence rulesets and functions declaratively Functions are especially useful in doing pre and post processing Asserts inputs and returns outputs Provides validations

13

Copyright 2011 Oracle Corporation. All Rights Reserved

Rules Testing

14

Copyright 2011 Oracle Corporation. All Rights Reserved

Many More Features

Dictionary Links Spread rules across dictionaries for reuse and access control Decision Functions Create rule flows

15

Copyright 2011 Oracle Corporation. All Rights Reserved

Demonstration

16

Copyright 2011 Oracle Corporation. All Rights Reserved

http://otn.oracle.com/soa http://www.oracle.com/soa

Q & A
17

QUESTIONS ANSWERS

Copyright 2011 Oracle Corporation. All Rights Reserved

You might also like