4 Replies Latest reply on Sep 3, 2008 12:35 PM by kukeltje

    "exit condition" based on variable existance / variable valu

    memius

      In http://www.workflowpatterns.com/patterns/data/routing/wdp36.php it is stated that this pattern is not included (in jbpm version 3.1.4).
      Is it already implemented in some way in version 3.2.3 ?

      Meaning : is it possible to take a transition (exit condition on a node) depending on whether a process variable is set to a certain value ?
      Sincerely,
      Dieter D'haeyere.

        • 1. Re:
          kukeltje

          Yes it is, by using guarded transitions. See the docs for this.

          The thing I (personnaly have) against all the patterns is that They are exploding and they want *everything* in the definition. jPDL (jBPM) is so flexible that if you use it as a library, you can (with some code) achieve all they want and say is not supported in jBPM. You can implement custom nodes (the behaviour of 'nodes' is in that way very extendible) and

          • 2. Re:
            kukeltje
            • 3. Re:
              memius

              Maybe I did not explain what I mean correctly.

              What I actually mean is : is it possible to take a transition from the moment that a variable is assigned to a certain value.

              So, the value should not be checked only once, but 'regularly' and a transition should be taken from the moment that the variable is set to that variable ...

              Sincerely,
              Dieter D'haeyere.

              • 4. Re:
                kukeltje

                That is not what the pattern is about afaik, that is the other way around.... but anyway.

                Sure you can, by using e.g. quartz to check the value of a variable every 0.1 second and signal a transition once the value reaches a certain value.

                Or any other way using the jBPM api.