[jboss-user] [jBPM] - Re: Create new users in jBPM
Miloud Haimoune
do-not-reply at jboss.com
Wed Jun 20 07:10:19 EDT 2012
Miloud Haimoune [https://community.jboss.org/people/milhaim] created the discussion
"Re: Create new users in jBPM"
To view the discussion, visit: https://community.jboss.org/message/743034#743034
--------------------------------------------------------------
Hi,
If you are assking about jbpm / human task users, you can add them when you create the taskservice
TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
TaskServiceSession taskSession = taskService.createSession();
taskSession.addUser(new User("Administrator"));
taskSession.addUser(new User("....
here an example :
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask/HumanTaskExample.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask/HumanTaskExample.java
you can load you list of users from a file or a database
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/743034#743034]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120620/26002784/attachment.html
More information about the jboss-user
mailing list