-
1. Re: how to find all process definitions related to a user
morpheus_jboss Mar 27, 2007 6:45 AM (in response to morpheus_jboss)please help, in the API of jbpm i could not find any related methods.
-
2. Re: how to find all process definitions related to a user
kukeltje Mar 27, 2007 7:00 AM (in response to morpheus_jboss)what do you mean by 'filter out'? To not show the processdefinitions a user is not allowed to carry out the start task from? 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....
-
3. Re: how to find all process definitions related to a user
morpheus_jboss Mar 27, 2007 9:11 AM (in response to morpheus_jboss)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.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. -
4. Re: how to find all process definitions related to a user
kukeltje Mar 27, 2007 10:23 AM (in response to morpheus_jboss)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,
Wrong, it is not, only if you added it yourself.
You do not have to change any queries just build your own ones in your own application -
5. Re: how to find all process definitions related to a user
morpheus_jboss Apr 13, 2007 6:13 AM (in response to morpheus_jboss)Hi Ronald,
According to your request in thread
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=106313
I checked the jira and found nothing related. So I filed one:
http://jira.jboss.com/jira/browse/JBPM-952