cancel
Showing results for 
Search instead for 
Did you mean: 

Java ServiceTask and security

re3lex
Champ in-the-making
Champ in-the-making
Hi guys!

I'm using Activiti5.5 with SpringSecurity 3.0.5.

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?
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Hi,

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?)