Reputation: 15
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
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