Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8608

ESB Tooling Needs Drools' Object Mapping Property

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.2.1.M1, 3.3.0.M1
    • 3.2.0.CR1
    • esb
    • None

      Property "object-paths" needs to be provided in the Drools' content based router.

      Example:
      <action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="cbr-router">
      <property name="cbrAlias" value="Drools"/>
      <property name="ruleSet" value="/META-INF/drools/airport-code.drl"/>
      <property name="ruleLanguage"/>
      <property name="destinations">
      <route-to destination-name="ERROR"
      service-category="com.example.soa" service-name="error-service"/>
      <route-to destination-name="SUCCESS"
      service-category="com.example.soa" service-name="successful-record"/>
      </property>
      <property name="object-paths">
      <object-path esb="body.'org.jboss.soa.esb.message.defaultEntry'" />
      </property>
      </action>

      This currently requires that you jump into XML view to add the required property object-paths. Otherwise, only the Message object is mapped into the rule context. This should be provided in the ContentBasedRouter UI in JBoss Tools if possible.

            scabanovich Viacheslav Kabanovich (Inactive)
            brad.davis@amentra.com Brad Davis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: