Discussion:
[jboss-user] [jBPM] - Human Task User Management
Juri Zeisler
2013-06-27 07:24:42 UTC
Permalink
Juri Zeisler [https://community.jboss.org/people/juriz] created the discussion

"Human Task User Management"

To view the discussion, visit: https://community.jboss.org/message/825173#825173

--------------------------------------------------------------
Hey,

I am trying to create a simple process with one human task. When I create this human task with a default actorId like "krisv" or "mary" everething works just fine.
But when i am trying to create a new user with

taskSession.addUser(new User(name));

and then assign the human task to this new user the created task has a null value for the actualOwner_id. So I am not able to retrieve this task. But the table organizationalentity
contains this new user.

I am using jBPM 5.4 with MySQL database.

Do I miss something?

Thanks in advance.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/825173#825173]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Thomas Setiabudi
2013-06-28 02:15:08 UTC
Permalink
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: Human Task User Management"

To view the discussion, visit: https://community.jboss.org/message/825382#825382

--------------------------------------------------------------
Hi Juri Zeisler,

You may need to get a look on how the UserGroupCallback is implemented in your environment.

If you use the default User Group Callback from JBPM 5.4 Installer, it will look for valid user and groups from

\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration\users.properties

and

\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration\roles.properties

But this is just a default implementation,
You can even make your own User Group Callback implementation to get valid user from somewhere else,
Take a look at the documentation to get more info:
http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html#d0e5419 http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html#d0e5419

Regards,
Thomas Setiabudi
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/825382#825382]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Juri Zeisler
2013-06-28 10:29:08 UTC
Permalink
Juri Zeisler [https://community.jboss.org/people/juriz] created the discussion

"Re: Human Task User Management"

To view the discussion, visit: https://community.jboss.org/message/825474#825474

--------------------------------------------------------------
Hey,

thank you for your answer. I think I understand now how the user management is done. But what are the entries in the organizationalentity table user for?

Thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/825474#825474]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...