Looping Script

Hello Everyone,

I have a issue, im trying to loop groovy script, im using this, its service task and my goal is to keep it executing till condition met:
for(;;){
if(isItOkay == true){
return “200OK”
break;
}
}

but it gets stuck on loop still if condition met, but when i restart web server, it executes script since condition met. Any solution please?

i can do loopback but it will accumulate 200k over done tasks, and its not beautiful. :smiley:

best regards,

BonitaPerson

Hi @someneedforspeed

Have you tried using Loops instead? Iteration | Bonita Documentation

Hope this heps.
Cheers!
-Thalia

1 Like

Hello,

yes, im using this now, since i tried looping through script but got stuck sadly, could not find any other solution, i just did not want “done task” section to get overcrowded by done tasks, makes hard to check if it want to right flow. thanks for help tho

Cheers to you too!

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.