JBoss Community

Re: Create new users in jBPM

created by Miloud Haimoune in jBPM - View the full discussion

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

 

 

you can load you list of users from a file or a database

 

 

HTH

 


Reply to this message by going to Community

Start a new discussion in jBPM at Community