3 Replies Latest reply on Oct 11, 2011 11:21 AM by Livia Hauser

    Can't start a simple loop bpmn process on jbpm-console

    Livia Hauser Newbie

      Hi,

       

      I have a simple Process:

      AsyncSleepThread-image.png

      If I try to execute this BPMN using jbpm-console i got the following output and no processinstance is created:

      bpmn_start.png

      "return loopCount >=5;   return loopCount < 5;" are contraints maintained in  last gateway.

       

      Any ideas what goes wrong?

       

      Many Thx,

      Liv

       

      Attached you will find my process defintion and my test handler. Tested with drools 5.3.0.CR1 and jbpm 5.1.1.Final on JBoss AS 5.1.

        • 1. Re: Can't start a simple loop bpmn process on jbpm-console
          Tihomir Surdilovic Master

          Hi Livia, sorry I was not able to reproduce the issue.

          Here is your process opened in the jBPM web designer:

          Screen shot 2011-10-10 at 10.22.06 PM.png

          and here is the process form opened in jBPM console (process form was created via the web designer).

          Screen shot 2011-10-10 at 10.13.45 PM.png

           

          Can you share the ftl form you are using for your tests?

          • 2. Re: Can't start a simple loop bpmn process on jbpm-console
            Livia Hauser Newbie

            Hi Tihomir,

             

            many thx for your answer.

            I don't use a form. Variable loopCount are created with value 1, but it seems this is currently not supported(?):

            variable_loopCount.png

             

            Now I use a script task to initialize loopCount:

            process.png

             

            But its still not possible  to start this bpmn.

             

            Greetings,

            Liv

            • 3. Re: Can't start a simple loop bpmn process on jbpm-console
              Livia Hauser Newbie

              Hi,

               

              one good news and one bad news.

              The good news is: Now I can start my process. I added a simple form, contains only a submit button , and reload everthing. Now it starts.

               

              bad news:

              I run into an NullPoineterException:

               

              17:01:57,143 ERROR [STDERR] Exception in thread "Thread-35"

              17:01:57,143 ERROR [STDERR] java.lang.NullPointerException

              17:01:57,143 ERROR [STDERR]     at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:43)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.node.JoinInstance.triggerCompleted(JoinInstance.java:152)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.node.JoinInstance.internalTrigger(JoinInstance.java:52)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)

              17:01:57,144 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:100)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)

              17:01:57,145 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)

              17:01:57,146 ERROR [STDERR]     at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)

              17:01:57,146 ERROR [STDERR]     at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)

              17:01:57,146 ERROR [STDERR]     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:239)

              17:01:57,146 ERROR [STDERR]     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:301)

              17:01:57,146 ERROR [STDERR]     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:277)

              17:01:57,146 ERROR [STDERR]     at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)

              17:01:57,146 ERROR [STDERR]     at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:119)

              17:01:57,147 ERROR [STDERR]     at WorkItems.handler.WThread.run(TestSleepHandler.java:74)

               

              Thin NPE only occurs if I use a asynchr. behavior. Asynchr. means manager.completeWorkItem is not called by WorkItemHandler, another Thread calls manager.completeWorkItem .

               

              Some ideas?

               

              Many thanks,

              Liv