Forum Discussion
jkrier
10 years agoRegular Contributor
Hello Marcus, I am unfamiliar with using event handlers. Do you mean create 2 new Groovy steps and put one in front and one after the CheckTransitionStatus? Also, can you provide an example of how they are used?
I did remove the getSoaTransactions 2 and the CheckTransitionStatus and added a 10 second delay instead (Just guess it would be enough time for the transaction to complete) and this does seem to solve the issue so it does look like there is a problem with running a Groovy step inside the while loop but this extra Groovy step would not be running inifinitely, it might need to run 10 times or something but it will eventually error or finish plus that is not where it runs continuously, rather the entire while loop is what runs continuously. So all of the steps listed in my Groovy loop code is what is executed over and over.
I don't think I can provide this project as it's too proprietary. I can try and strip out the calls to GoogleAPI and loop them. It would basically be the same thing. Would that be OK?
I did remove the getSoaTransactions 2 and the CheckTransitionStatus and added a 10 second delay instead (Just guess it would be enough time for the transaction to complete) and this does seem to solve the issue so it does look like there is a problem with running a Groovy step inside the while loop but this extra Groovy step would not be running inifinitely, it might need to run 10 times or something but it will eventually error or finish plus that is not where it runs continuously, rather the entire while loop is what runs continuously. So all of the steps listed in my Groovy loop code is what is executed over and over.
I don't think I can provide this project as it's too proprietary. I can try and strip out the calls to GoogleAPI and loop them. It would basically be the same thing. Would that be OK?
Related Content
- 11 years agojoffre