2 Replies Latest reply on Apr 19, 2007 1:37 AM by skp skp

    Problem regarding fork

    skp skp Newbie

      Sorry the code is not being posted proeprly, posting again.

      
      <?xml version="1.0" encoding="UTF-8"?>
      <process-definition
       xmlns="urn:jbpm.org:jpdl-3.1" name="simple_workflow">
       <start-state name="start">
       <transition name="forkTransition" to="fork1"></transition>
       </start-state>
       <end-state name="End"></end-state>
       <fork name="fork1">
       <transition name="test1" to="InvokeTest1"></transition>
       <transition name="test2" to="InvokeTest2"></transition>
       </fork>
       <node name="InvokeTest1">
       <action class="net.bcgi.Test1"></action>
       <transition name="" to="join1"></transition>
       </node>
       <node name="InvokeTest2">
       <action class="net.bcgi.Test2"></action>
       <transition name="" to="join1"></transition>
       </node>
       <join name="join1">
       <transition name="" to="End"></transition>
       </join>
      </process-definition>
      


        • 1. Re: Problem regarding fork
          Ronald van Kuijk Master

          how do you know it gets executed twice? do you have jbpm logging that shows that? Can't it just be a copy-paste error in in the net.bcgi.Test1/2 class?

          Secondly, if you want concurrent processing, use async actions

          • 2. Re: Problem regarding fork
            skp skp Newbie

            Thanks for reply!!
            Yes, i have put logging statements in test1 and test2 classes, so when i execute the workflow, the logging statements of test1 comes twice. We have scenarios of sync and async actions both.

            If i make it async , how can i get the response at some later point, is there any way.

            Waiting for any response, Thanks a lot.