2 Replies Latest reply on Feb 9, 2006 9:37 AM by henk

    Best way to know which flows have a certain named transition

    henk

      Hi,

      I was wondering what's the easiest way to know if a flow is in a state where it should respond to a certain named transition.
      What I would like to achieve is that a messagebean responds to an incoming message by 'waking up' all active flows, looks up which flow should react to this message by looking which transitions are outgoing and finally signals these .


      thanks

      Henk

        • 1. Re: Best way to know which flows have a certain named transi
          ralfoeldi

          Hi Henk,

          you would have to perform a custom (Hibernate) query linking token to node to transition name.

          Another idea would be to have all tokens that are waiting for a certain message to set a certain variable and to query that. Could be easier, faster and more flexible.

          Hope this helps you out.

          Greetings

          • 2. Re: Best way to know which flows have a certain named transi
            henk

            Thanks for your answer ! Isn't there a way that makes use of the API ? I'm afraid that using a query directly on the db will not survive version upgrades. A hibernate query indeed is already safer.

            Henk

            "RAlfoeldi" wrote:
            Hi Henk,

            you would have to perform a custom (Hibernate) query linking token to node to transition name.

            Another idea would be to have all tokens that are waiting for a certain message to set a certain variable and to query that. Could be easier, faster and more flexible.

            Hope this helps you out.

            Greetings