3 Replies Latest reply on Apr 4, 2006 3:09 AM by Joachim Schroer

    Process State

    Akshay Sharma Newbie

      I am trying to test a Process definition with process state (subprocess).

      The execution enters the subprocess but fails in the sub process ..Any clues ..



      ibernate: select variableac0_.SCRIPT_ as SCRIPT8_1_, variableac0_.ID_ as ID1_1_, variableac0_.ID_ as ID1_12_0_, variableac0_.VARIABLENAME_ as VARIABLE2_12_0_, variableac0_.ACCESS_ as ACCESS3_12_0_, variableac0_.MAPPEDNAME_ as MAPPEDNAME4_12_0_ from JBPM_VARIABLEACCESS variableac0_ where variableac0_.SCRIPT_=?
      java.lang.NullPointerException
      at org.jbpm.graph.node.ProcessState.leave(ProcessState.java:165)
      at org.jbpm.graph.exe.Token.signal(Token.java:174)
      at org.jbpm.graph.exe.Token.signal(Token.java:123)
      at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:217)
      at com.test.ProcessStateTest.testSimpleProcess(ProcessStateTest.java:43)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)

        • 1. Re: Process State
          Joachim Schroer Newbie

          i've got the same problem when i trigger the signal method in the processState node.
          it seems that in the leave method of class ProcessState, the parameter executionContext got a null value for the subProcessInstance.
          im a rooki using jbpm please post you got a solutioon for this.

          thanks josch




          • 2. Re: Process State
            Akshay Sharma Newbie

            Are using mutiple elements like script, actrion etc in your node

            • 3. Re: Process State
              Joachim Schroer Newbie

              hi,
              no nothing of that, just a customized assignmenthandler in the swimlane of my subprocess

              snippet of my main process definition

              <start-state name="start">
               <task name="taskKonfigNeuanlage" swimlane="SystemMandant"></task>
               <transition name="" to="Konfiguration-Eingabe"></transition>
               </start-state>
               <process-state name="Konfiguration-Eingabe">
               <sub-process name="konfigEingeben"/>
               <transition name="" to="KonfigurationFreigeben"></transition>
               </process-state>
              
              ...
              
              


              and the subprocess

              <process-definition xlmns="urn;jbpm.org:jpdl-3.1" name="konfigEingeben">
               <swimlane name="Techniker">
               <assignment class="com.siemens.websolutions.ams.test.DefaultAssignmentHandler">
               <taskName>konfigurationEingabe</taskName>
               <roleList>techniker</roleList>
               </assignment>
               </swimlane>
              
               <start-state name="startKonfiguration-Eingabe">
               <task name="konfigEingebenTask" swimlane="Techniker"></task>
               <transition name="" to="KonfigurationEingabe"></transition>
               </start-state>
              
               <task-node name="KonfigurationEingabe">
               <task name="Asset" swimlane="Techniker"></task>
              
              ...
              
              

              thanks for reply
              Josch