5 Replies Latest reply on Mar 2, 2011 3:32 AM by hussam ihmaidi

    GateWay No-Wait Problem

    hussam ihmaidi

      Hi,

      I'm trying to implement a process that gets from DB set of "visits" then I'm trying to send these visits to their users, so I used gateWay that includes a subprocess,the gateWay's control type is NO-WAIT to send the visits to all users at the same time, I used a SetValue to do counting.

      but the gatWay loops n-times (the number of visits) without calling the subprocess then it calls the subprocess n-times so all the tasks will be sent to one user?

       

      am I doing somthing wrong?

       

      p.jpg

        • 1. Re: GateWay No-Wait Problem
          $Nith$ Level 4

          Is your subprocess short lived?

           

          If yes, you can completely remove the gateway and place the Confirm Visit subprocess between GetNext User & C++ activities.

           

          Adding gatway in this case will run the Sub process in a separate thread. You cannot depend on the order of execution at this situation.

           

          Nith

          1 person found this helpful
          • 2. Re: GateWay No-Wait Problem
            hussam ihmaidi Level 1

            Thank you Nith,

                 Is your subprocess short lived? No

                

            In my case I have to send for each User a pdf to sign, so if I removed the gateway , the tasks will be sent one by one to the users and the last user has to wait for all previous user to accept their tasks and this is wrong, I want to send the tasks to all users at the same time without waiting for anyone acceptance,  because of that I used the gateway with NO-WAIT thought that it will call the subprocess for each iteration without waiting for the subprocess to be finished.

            • 3. Re: GateWay No-Wait Problem
              pguerett Level 6

              I agree with $Nith....you do not need the Gateway....simply call the subprocess in your loop. Each time you loop through a new subfprocess will be called. You are right that the last user will have to wait until all the others are sent ....but he wil not have to wait until they respond. Just make sure that you set the Invocation Policy to "Do not Wait"

               

              Paul

              • 4. Re: GateWay No-Wait Problem
                Jasmin Charbonneau Level 4

                Can't you simply just use the Assign Multiple Task instead. This will allow you to send the task to multiple users in parallel without the need of a Gateway.

                 

                Jasmin

                • 5. Re: GateWay No-Wait Problem
                  hussam ihmaidi Level 1

                  Paul, thank u, I did not know about the  "Invocation Policy", because I'm new in Adobe LC

                  Jasmin, thank u for your reply, but in my case I have to send different docs for different users, so I "Guess" the send to multiple users will not work!