Question

4
Replies
4740
Views
PravinP2670 Member since 2016 2 posts
Synechron Technologies Pvt. Ltd.
Posted: April 18, 2017
Last activity: July 19, 2018
Closed

Which is the best way to wait for an activity to complete?

I have one dataTable and looping through the rows, for each row doing following -

1. First project interact with one internal website where I am filling one form based on data in row
2. Then Starting one activity passing parameters (data in row) from first project and ActivityStarted handled in second project where it opens and fill forms on another third party website (has wizard of 3 pages, result is on next page)
3. Taking the final result value from stage 2 and passing it back to first project where ActivityComplete event handled
4. Then filling the final result in one text box of first website
5. Then submit the form on first website to save the data

Now I must wait for stages 2,3,4,5 to complete before starting with new row in for loop.I tried all versions of Start activity method, but not getting the expected result. Sometime it halts the application(doing nothing), sometimes stage 5 get executed and form on first website get saved before getting the final result value from activity.

Which is the best way to wait the loop till first row get completely processed? Stage 5 must wait till activity started in stage 2 get completed and data returned and filled in text box on first website.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn