AnsweredAssumed Answered

Script Task within a loop causing StackOverflowError

Question asked by zlatan316 on Jan 29, 2018
Latest reply on Feb 2, 2018 by daisuke-yoshimoto

We have a simple script task in a BPMN that is within a loop that is designed to loop around 500 times. The script task simply creates a string variable. We can see when we don't mark the script as asynchronous, we see a StackOverflowError after around 30 loops occur. If we mark it as asynchronous, we do not see the error.

 

Is there any indication why this occurs specifically with script tasks and not with any other tasks such as service tasks?

Outcomes