3 Replies Latest reply on Sep 17, 2009 6:37 AM by pektop

    Error from Fork element with transitions to FreeMarker forms

      Hello,
      The problem is that I need to fork workflow, and got his error in jBPM console:

      root cause
      java.lang.NullPointerException
       org.jbpm.integration.console.forms.TaskFormDispatcher.provideForm(TaskFormDispatcher.java:149)
       org.jbpm.integration.console.forms.FormDispatcherComposite.provideForm(FormDispatcherComposite.java:65)
       sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       java.lang.reflect.Method.invoke(Method.java:597)
       org.jboss.bpm.console.server.util.InvocationProxy.invoke(InvocationProxy.java:64)
       $Proxy143.provideForm(Unknown Source)
       org.jboss.bpm.console.server.FormProcessingFacade.provideForm(FormProcessingFacade.java:181)
       . . . . .
      

      Here is the fork element from the jpdl file:
       <fork name="fork1" g="176,568,48,48">
       <transition to="Pay manufacturer's bill"/>
       <transition to="Make installations"/>
       </fork>
      

      "Pay manufacturer's bill" and "Make installations" are transitions to .ftl forms. If I remove fork element and transition from previous element goes directly to these task elements then everything woks fine. But I need to split the workflow, and fork element is the only way how to do it.
      - What I need to do for get fork working?

      BR

      Oleg Ladizhensky

        • 1. Re: Error from Fork element with transitions to FreeMarker f
          jbarrez

          This is an interesting question. I don't from the top of my head how the console will react in this situation. I've added https://jira.jboss.org/jira/browse/JBPM-2516 to investigate the problem and work out a solution if one is needed.

          • 2. Re: Error from Fork element with transitions to FreeMarker f
            jbarrez

            Oleg could you provide me the complete process?

            Since 2 tasks after a fork should simply create 23 separate tasks, with each a form attached to it.

            • 3. Re: Error from Fork element with transitions to FreeMarker f

               

              "jbarrez" wrote:
              Oleg could you provide me the complete process?

              Sure, here it is.
              <?xml version="1.0" encoding="UTF-8"?>
              
              <process name="VacationRequest_bug" xmlns="http://jbpm.org/4.0/jpdl">
               <start form="org/jbpm/examples/taskform_bug/request_vacation.ftl" g="170,16,48,48" name="start">
               <transition to="fork1"/>
               </start>
               <task candidate-users="mike,peter" form="org/jbpm/examples/taskform_bug/verify_request.ftl" g="16,176,178,52" name="verify_request">
               <transition name="accept" to="join1" g="-52,-19"/>
               </task>
               <end g="170,340,48,48" name="vacation_accepted"/>
               <task candidate-users="mike,peter" form="org/jbpm/examples/taskform_bug/verify_request2.ftl" name="verify_request2" g="226,176,114,52">
               <transition name="accept" to="join1" g="-52,-19"/>
               </task>
               <fork name="fork1" g="170,96,48,48">
               <transition to="verify_request"/>
               <transition to="verify_request2"/>
               </fork>
               <join name="join1" g="170,260,48,48">
               <transition to="vacation_accepted"/>
               </join>
              </process>

              Hope this will help in investigation.

              BR
              Oleg Ladizhensky