Hello @Draakzward ,
Tried that as well. But the main problem here is that I’m inplementing a TaskListener, which gives me a
DelegateTask
, and a “event == complete”. If to callgetVariables
from there, I already see there data, submitted by the form, which is too late.
Given that the process engine works transactional, the variables available from are not yet submitted to the database, but part of the transaction. If you throw an exception at this point, the command will be rolled back, leaving no traces of variables.
Regarding the bean solution: This works if you actively register this bean as listener to the process model, using the bean name as delegate expression. The bean only will not help as it needs to be called.
The filter is a mechanism provided by the container (Tomcat/Spring Boot in most cases).
Jonathan