4 Replies Latest reply on Nov 21, 2006 4:56 AM by pirx

    How to select a transition of a process state

    theejbpope

      Hello,

      Is there is scenario to select from within a subprocess a transition of the process state that called it ?

      For example, a subprocess getting a "yes" or "no" from a user, is called from a process state with a "yes" and "no" transition. How can I match the answer of the user with one of the process state transitions ?

      Many thanks for helping me out !

      Regards,

      Jan

        • 1. Re: How to select a transition of a process state
          tom.baeyens

          add a decision node after the process-state and use a process variable to transfer the result

          • 2. Re: How to select a transition of a process state
            theejbpope

            Hello Tom,

            As this answer is coming from you, I guess there really is no other solution for this.

            Is this something we can expect to find in jbpm's roadmap ? I've used a number of commercial products before and they allow it; in order to have a clean fit of a sub process into a super process.

            Thanks for answering that fast !

            Regards,

            Jan

            • 3. Re: How to select a transition of a process state
              tom.baeyens

              i didn't mean to say that your request doesn't make sense.

              we are thinking of enabling conditions on all transitions (not only the ones of a decision). then, you could combine the decision behaviour in each node implementation, also in the process-state

              but i want to group the jpdl xml changes as much as possible. more nodes are due on an update.

              • 4. Re: How to select a transition of a process state
                pirx

                While we are on the topic, is there a way to attach attributes to
                a transistion, so that similar transistions can be grouped together by
                their attributes ?

                I have an use case in which I need to extract a list of possible transactions
                which e.g. are marked as 'manual triggerable' (in contrast to timer triggered
                transactions) to present them in some UI.

                Or is there another way to achieve this behaviour ?