AnsweredAssumed Answered

Best way to handle looping service tasks to avoid StackOverflowError

Question asked by jdp on May 2, 2016
Latest reply on May 5, 2016 by jdp

I have a workflow as displayed in below link for a specific requirement :
Design :
Definition : attached
Test Class : attached

here when 'status' is other than 1 or 2, workflow goes in infinite loop and throws a StackOverflowError ::

Caused by: java.lang.StackOverflowError
        at org.activiti.engine.impl.context.Context.getStack(
        at org.activiti.engine.impl.context.Context.getProcessEngineConfiguration(
        at org.activiti.engine.impl.el.JuelExpression.getValue(
        at org.activiti.engine.impl.bpmn.behavior.ServiceTaskExpressionActivityBehavior.execute(

Can anyone please suggest how to handle such scenario or which is the best way to handle this.