AnsweredAssumed Answered

Activiti 6 - JavaDelegate throw exception

Question asked by heyjustyn on Feb 15, 2018
Latest reply on Feb 16, 2018 by ryandawson



According to the user guide, it seems like the execute method in the interface JavaDelegate is supposed to be able to throw an exception (The examples in that area show exactly this).


The issue I am having with Activiti 6 is that the execute method in the JavaDelegate doesn't allow throwing of exceptions.


It did allow it in Activti 5.x according to the JavaDocs


In my implementation of the JavaDelegate, I would like to be able to throw an exception so that I can utilize the "Fail Retry" feature in activiti.


Is not being able to throw an exception in the JavaDelegate expected behavior in Activiti 6? If so, is there another way to use this fail retry feature?