0 Replies Latest reply on Mar 12, 2014 11:02 PM by Jonathan meng

    User and group assignment

    Jonathan meng Newbie

      hello every:

      I can assign user and group in JBPM5 like this:

      EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task");

      TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());

      TaskServiceSession taskSession = taskService.createSession();

      // now register new users and groups

      taskSession.addUser(new User("krisv"));

      taskSession.addGroup(new Group("developers"));

      And now I want to know how to add user in JBPM6?

      Appreciate your reply!