Loong
Loong

Reputation: 15

jbpm5 how to use the real user table

This is salaboy example:

 private void addUsersAndGroups(TaskServiceSession taskSession) {
    User user = new User("salaboy");
    User watman = new User("watman");
    taskSession.addUser(user);
    taskSession.addUser(watman);
    User administrator = new User("Administrator");
    taskSession.addUser(administrator);
    users.put("salaboy", user);
    users.put("watman", watman);
    users.put("administrator", administrator);
    Group myGroup = new Group("group1");
    taskSession.addGroup(myGroup);
    groups.put("group1", myGroup);

}

I want use real User Table. How do I map it? How to use UserGroupCallback Interface? How users online custom processes, do they use guvnor?

Upvotes: 1

Views: 660

Answers (1)

Rafael Matos
Rafael Matos

Reputation: 516

To map your User class to a table, you need to create a user.hbm.xml file (you can follow this tutorial in order to do so. This file will be placed on your META-INF folder

Upvotes: 1

Related Questions