Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-2273

Extend BusinessRulesProcessor action to support entry-point

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.4 CP1
    • Fix Version/s: 4.6
    • Component/s: Process flow
    • Labels:
      None

      Description

      BusinessRulesProcessor allows for a "stateful" rules session as of ESB 4.4, however, it doesn't allow subsequent inbound messages to inject those messages into the already existing stateful rules session via the entry-point API.

      <action
      class="org.jboss.soa.esb.actions.BusinessRulesProcessor"
      name="OrderDiscountBasedOnCustomerHistory">
      <property name="ruleSet"
      value="OrderDiscountOnMultipleOrders.drl" />
      <property name="ruleReload" value="false" />
      <property name="stateful" value="true" />
      <property name="object-paths">
      <object-path esb="body.TheOrderHeader" />
      <object-path esb="body.TheCustomer" />
      </property>
      </action>

      We might extend this like so:
      <object-path esb="body.TheOrderHeader" entry-point="OrderStream" />
      <object-path esb="body.TheCustomer" entry-point="CustomerStream" />
      The date time stamp should be based on message DOB but perhaps overrideable here as well.

      The use of entry-points would also mean that the Rules session is "self cleaning" as it automatically garbage collects stale facts.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                beve Daniel Bevenius
                Reporter:
                burrsutter Burrsitis Sutter
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: