[jboss-user] [jBPM] - Re: Users in task server

Alex Pavlov do-not-reply at jboss.com
Mon Feb 28 11:27:10 EST 2011

Alex Pavlov [http://community.jboss.org/people/rushproject] created the discussion

"Re: Users in task server"

To view the discussion, visit: http://community.jboss.org/message/590132#590132

Hi Mauricio,

Thanks for prompt reply.
> Mauricio Salatino wrote:
> Hi Alex, inside jBPM5 you only need to keep a small representation of what an user or a group represent for you, in order to be able to do the look up to your external data source like LDAP. What jBPM5 stores is only a way to retrieve that reference in your external system.

Yes, task server stores only user or group id, which is supposed to be a "small representation". Unfortunately, the way it interprets this id assumes the server "knows" if any given id is valid, thus it keeps whole lot much more info than just a handle to lookup external data source.

If task server kept merely IDs (for users and groups), adding a task would never fail assuming Task.createdBy.id contains any non empty string.

But the above transaction fails the very moment server encounters an id, which is not yet in its local database.

> It's also good to notice that if you describe your business processes and assign tasks to different groups and users, you will have the information about the users and groups that will need to be available in the mappings. 

So what?

First, I like the (much advocated) idea of decoupling bpm engine and task server. Ideally, decoupling means that I can use any 3rd party task server (assuming, it complies to jBPM task server protocol). As a matter of fact, now I use jBPM demo task server and my implementation (that uses MySQL database) interchangeably, assuming user id is krisv. But unfortunately(?) the protocol does not allow pushing user and group id's to the task server.

Second, I can't afford offering solution that uses unnecessary data replication.

>  We can think a way to automate that mappings.

Yes, I know you did  :)  I have seen the org.jbpm.userprofile package. Unfortunately I see no way how it could be used at the moment...

Well, as long as I need solution rather quickly, I am going to either patch the TaskServiceSession or build "addTask" rules to automatically create missing users and groups prior to persisting the task. Any comments on this approach (do you see any side effects?) or any alternate workarounds are highly appreciated.

Thank you,

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110228/52be2cb0/attachment.html 

More information about the jboss-user mailing list