5 Replies Latest reply on Jan 9, 2009 4:10 AM by kukeltje

    Transition loop

    paolodt

      Does jpdl supports transition from a node to itself? basically a node loop ?

      I've tried to design using the GPD, but is seems to do not permit it ..

      Paolo

        • 1. Re: Transition loop
          kukeltje

          the GPD in graphical mode does not allow it. In the source by hand you can achieve this... the engine allows it BUT... make sure it is a wait state, otherwise you will get a stack overflow after a few hundred iterations (maybe even less)

          • 2. Re: Transition loop
            paolodt

             


            the engine allows it BUT... make sure it is a wait state, otherwise you will get a stack overflow


            Should it work with a task node also? I want to let a user to loop on a task until he choose a different transition ...

            Thanks, Paolo

            • 3. Re: Transition loop
              kukeltje

              Yep it should as long as you close the context so it will be persisted...

              • 4. Re: Transition loop
                insanely.freak

                I have a workflow requirement where I need to keep asking users in a system for approval till it is approved by all of them.
                I decided to loop over two jbpm nodes first being decision node and then a task node.
                Here I get a StackOverFlow Exception when i load the taskinstance from db again and try to end it. I have searched across various forums, only solution ppl seems to suggest for this is to persist it.
                Currently I am persisting the task instance created and then I end the task by fetching it from database. After this flow is suppose to go to decision node and decide whether to go to task node or to end. but as soon as it reached decision node I get StackOverflow exception.
                Cud anyone explain where and how i need to persist.

                • 5. Re: Transition loop
                  kukeltje

                  duplicate post.... please don't