Tuesday, March 18, 2014

Oracle Business Rules Cheat sheets

Section 1: Oracle Business Rules

Details:

  • When facts are modified as part of action inside business rules, business rules are getting fired again based on the new data
  • Priority/Order can be set in business rules in order to call them in a particular order
  • Business rules can be made active/inactive by checking the "Rule Active" check box
  • Inactive business rules are not getting fired and are same as commented code

Section 2: Oracle Business Rule Facts

Details:

  • Facts can be defined as RL Facts and properties (one or more) can be added to the fact.
  • While defining a property as an ArrayList, defining the property's array list item type (e.g. Person type fact) throws an undefined fact error, so its better to leave the array list item type as blank.
  • Facts can be asserted using assert new action in initial action, these assertions will not be maintained by names -
  • Facts can be created using assign new and then can be asserted, these will be available by names as well
  • Facts are directly accessible in Oracle Business Rules
  • Facts are not accessible in BRE Functions
  • Collection of facts or fact itself can be passed from Oracle BRE to function while calling the function
  • Facts need to be used in BRE, if they are not used in BRE, BRE cannot be compiled and deployed even if they are used in initial actions

Section 3: Oracle Business Rule Functions

Details:

Section 4: Oracle Business Rule Initial Action

Details: