All my spring services marked as secured and have exact allowed roles.
There is a couple of Java Service Tasks in my process. These service tasks should invoke some spring services an write result to DB.
But I have faced with the following issue: Java Service Tasks is executed out of security context by default. So when Java Service Task's handler tries to invoke some secured spring service I'm getting exception.
Does anybody know how to configure Activiti to execute Java Service Tasks in some security context?
How is the security-context associated with the current "thread" or caller in the rest of your application? Do you get the spring-beans in a special way from the spring-context (through proxy or something?)