Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4422

Insertion of a fact into KieSession causes problems

    XMLWordPrintable

Details

    • ER3
    • Hide
      1. Extract the attached project
      2. Run it as: mvn clean install exec:java
        • You will see output: person not found
      3. Open com.sample.RuleConditionTest class
      4. Uncomment the line: kSession.insert(new Person());
      5. Save the changes
      6. Run the project again as: mvn clean install exec:java
        • Actual behavior: exception is thrown
        • Expected behavior: output person found
      Show
      Extract the attached project Run it as: mvn clean install exec:java You will see output: person not found Open com.sample.RuleConditionTest class Uncomment the line: kSession.insert(new Person()); Save the changes Run the project again as: mvn clean install exec:java Actual behavior: exception is thrown Expected behavior: output person found

    Description

      I the attached project is shown problem of inserting a fact into KieSession. The attached project runs correctly if there is not inserted fact into the KieSession. If there is inserted a fact into the KieSession then the exception bellow is thrown.

      Caused by: org.jbpm.workflow.instance.WorkflowRuntimeException: [ruleConditionProcess:1 - Exclusive Gateway 1:2] – XOR split could not find at least one valid outgoing connection for split Exclusive Gateway 1
      at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:67)
      at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173)
      at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:366)
      at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:325)
      at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:73)
      at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:44)
      at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:173)
      at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
      at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:236)
      at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:449)
      at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:206)
      at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:190)
      at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:182)
      at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:177)
      at org.drools.core.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:1884)
      at com.sample.RuleConditionTest.main(RuleConditionTest.java:27)
      ... 6 more
      Caused by: java.lang.IllegalArgumentException: XOR split could not find at least one valid outgoing connection for split Exclusive Gateway 1
      at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:111)
      at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63)
      ... 21 more

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            rh-ee-jomarko Jozef Marko
            Tomáš Livora Tomáš Livora (Inactive)
            Tomáš Livora Tomáš Livora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: