5 Replies Latest reply on Nov 29, 2006 6:48 AM by romeufigueira

    Waiting for external input

    romeufigueira

      This is a theoretical question. Let's say that we have a certain process which in the middle of execution needs an external input.

      So, how can the external input be directed to that node which is in a wait state?

      Let's say that I have a JbossWS service running on the server and that as an action of that WS, an input should be directed to that specific process instance/node?

      What should I be looking for, in terms of knowing the correct node to place my input?

      Thanks

        • 1. Re: Waiting for external input

          You would not need to send any input to a node, but rather you would need to send the input to a specific process instance which is waiting for that input on a node. So the external system needs to know the id or the instance that is waiting. (Or any qualifier that would find one or more processes, i.e. any process where Company Name = 'Dutch Beer Co'.)

          If you were going to send a message out to the external system informing it that your workflow is ready for some input, you could pass some kind of instance ID in the message and have the external system send it back with their input. Your processing logic then becomes something like

          1. parse id
          2. get instance
          3. parse input
          4. signal instance with input

          • 2. Re: Waiting for external input
            kukeltje

            partly correct, and by magic, dutch beer makes it to the stage again :-)

            If there are multiple tokens, it could be that you need to signal a specific token and not the process in general. In that case you do need to eventually refer to a token ID, either directly, or by e.g. passing a node name and looking up the token or whatever.

            • 3. Re: Waiting for external input
              thuat

              how my project run?

              • 4. Re: Waiting for external input
                kukeltje

                please do not threadjack

                • 5. Re: Waiting for external input
                  romeufigueira

                  @dslevine and kukeltje

                  Thank you for your input, a working solution is being fabricated ;)