5 Replies Latest reply on Jul 3, 2008 9:19 PM by biggo

    one question about Fork/Join

    biggo

       

      <?xml version="1.0" encoding="GBK"?>
      
      <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="convertor15">
      
       <!-- START-STATE -->
       <start-state name="start">
       <transition to="startFork" name="start to startFork"/>
       </start-state>
      
       <!-- NODES -->
       <end-state name="end"/>
       <task-node name="a">
       <transition to="b" name="to b"/>
       <task name="a's Task">
       <assignment actor-id="a"/>
       </task>
       </task-node>
       <task-node name="b">
       <transition to="b Fork" name="b to Fork"/>
       <task name="b's Task">
       <assignment actor-id="b"/>
       </task>
       </task-node>
       <task-node name="c">
       <task name="c's Task">
       <assignment actor-id="c"/>
       </task>
       <transition to="join1"></transition>
       </task-node>
       <task-node name="d">
       <task name="d's Task">
       <assignment actor-id="d"/>
       </task>
       <transition to="join2"></transition>
       </task-node>
       <task-node name="e">
       <transition to="f" name="to f"/>
       <task name="e's Task">
       <assignment actor-id="a"/>
       </task>
       </task-node>
       <task-node name="f">
       <task name="f's Task">
       <assignment actor-id="b"/>
       </task>
       <transition to="join2"></transition>
       </task-node>
       <task-node name="g">
       <task name="g's Task">
       <assignment actor-id="a"/>
       </task>
       <transition to="join1"></transition>
       </task-node>
       <fork name="startFork">
       <transition to="a" name="startForka"/>
       <transition to="e" name="startForke"/>
       </fork>
       <fork name="b Fork">
       <transition to="c" name="to c"/>
       <transition to="d" name="to d"/>
       </fork>
       <join name="join1">
       <transition to="end"></transition>
       </join>
      
       <join name="join2">
       <transition to="g"></transition>
       </join>
      
      </process-definition>
      

      by given this processdefinition,When TaskNode f and d 's task were all completed ,but the process stoped in the Join2 , and the TaskNode g cann't be accessed , I'm so puzzled by this question.

        • 1. Re: one question about Fork/Join
          biggo

          another description
          StartState-->Fork1
          Fork1-->node1
          Fork1-->Fork2
          node1-->Join1
          Fork2-->node2
          Fork2-->node3
          node1-->Join1
          node2-->Join1
          Join1-->node4
          node4-->Join2
          node3-->Join2
          Join2-->End

          the Join1 has 2 arrivingTransitions ,but the each of 2 Transition has different parentFork
          the question is coming , node 4 can't be accessed.
          How to deal with this quesiton

          Regards

          • 2. Re: one question about Fork/Join
            kukeltje

            looks like illegal use of a fork/join... all transitions into a fork need to have the same parent fork... you gave the answer yourself

            • 3. Re: one question about Fork/Join
              biggo

               

              "kukeltje" wrote:
              looks like illegal use of a fork/join... all transitions into a fork need to have the same parent fork... you gave the answer yourself

              Thanks for your answers
              I know that you said,but the real workflow occurs the scenario that I described.
              Can you help me to solve this scenario by jBPM?

              Regards
              biggo

              • 4. Re: one question about Fork/Join
                kukeltje

                uhmmm... not very easily... jBPM certainly will not support this (not sure if any workflowengine supports this)

                You have to think out of the box... look at you process from a different perspective... it can almost certainly be moddeled in a different way while adhering to what happens in real life...

                • 5. Re: one question about Fork/Join
                  biggo

                   

                  "kukeltje" wrote:
                  uhmmm... not very easily... jBPM certainly will not support this (not sure if any workflowengine supports this)

                  You have to think out of the box... look at you process from a different perspective... it can almost certainly be moddeled in a different way while adhering to what happens in real life...


                  Thanks