[jboss-user] [JBoss jBPM] - Re: how to find all process definitions related to a user

yoyoyoyo do-not-reply at jboss.com
Tue Mar 27 09:11:34 EDT 2007


Hi Ronald, thanks for the reply!
"kukeltje" wrote : what do you mean by 'filter out'? To not show the processdefinitions a user is not allowed to carry out the start task from? 
this is exactly what i want.
anonymous wrote : You have to write your own query for that, parse swimlane/assignment expressions etc. If you do not want to show the processes a user is not allowed to start, you have to also define which processes a user is not allowed to start.. jBPM has no functionality for that. Simply because in most cases the engine is used embedded in an application and that application has all the info.... 
I am implementing a portlet based application which should provide functions similar to those of the jbpm-console. But I'd like to use the user/role of the portal. So in my ProcessDefinition these are simply mapped to an actorId.

We depolyed jBPM and Portal in the same Application Server as services. We don't want to change the code of jBPM-Engine (or add any database queries to it) hoping this way we could better upgrade to future version of jBPM. 

Since all the information needed (whether an actor is allowed to start a process or whether he is related to a process) are included in the ProcessDefinition, I thought it would exist a way to do this using the API. That's why I am curious about how to solve this problem using the existing API of jBPM. In the worst case we have to query the jbpm database from within the Portlet Application, but we don't prefer to do that.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032014#4032014

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032014



More information about the jboss-user mailing list