Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2602

jBPM , Drools, Seam 2.2 - Transition issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • jBPM 3.2.7
    • None

    Description

      When using the DroolsDecisionHandler, only one transition from a rule is allowed, when a second transition is used, the following error is received:

      [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.EndState - this operation breaks ==

      The error should not be received, since the transition is very similar, two rules have been created. When only the first rule is used the one transition works fine. the addition of the second rule with the second transition from the same package in the working memory causes this issue.

      here is the process definition:

      <process-definition
      name="jbpm_to_rules"
      xmlns="urn:jbpm.org:jpdl-3.2"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://jbpm.org/xsd/jpdl-3.2.xsd"
      >

      <start-state name="start">

      <transition to="approval">
      <action expression="#

      {bpmCreditList.start}

      "/>
      </transition>

      </start-state>

      <decision name="approval">

      <handler class="org.jboss.seam.drools.DroolsDecisionHandler">
      <workingMemoryName>creditRulesWorkingMemory</workingMemoryName>
      <assertObjects>
      <element>#

      {creditScore}

      </element>
      </assertObjects>
      </handler>

      <transition name="not-preferred-customer" to="done2">
      <action expression="#

      {bpmCreditList.transitionNPC}

      "/>
      </transition>

      <transition name="modified-score" to="modified-score">
      <action expression="#

      {bpmCreditList.approved}

      "/>
      </transition>

      </decision>

      <end-state name="done2">
      <event type="node-enter">
      <action>expression="#

      {bpmCreditList.end}

      "/>
      </action>
      </event>
      </end-state>

      <end-state name="modified-score"> </end-state>

      <task-node name="done" end-tasks="true">
      <task name="nopreferred" description="Review order" >
      <assignment pooled-actors="reviewers"/>
      </task>

      <transition name="done2" to="done2"/>

      </task-node>

      </process-definition>

      Attachments

        Activity

          People

            aguizar_jira Alejandro Guizar (Inactive)
            glamperi@redhat.com Gary Lamperillo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: