I read in the documentation:
Our implementation requires all users and groups to be predefined before trying to assign a task to that user or group. So you need to make sure you add the necessary users and group to the database using the taskSession.addUser(user) and taskSession.addGroup(group) methods. Note that you at least need an "Administrator" user as all tasks are automatically assigned to this user as the administrator role.
I have a web application sort of like pet shop with user administration.
What if the administrator added a new user while there are still running processes on the server?
How should I handle it
Reply to this message by going to Community
Start a new discussion in jBPM at Community