I have an invoicing process and I want to be able to assign a task to a particular user from within the process. I have two questions:
- How do I display a drop down list of users in a particular group?
- How can I select a user and assign the next task to them?
The relevant part of the process is this - I want to pass control from the query swim lane to a particular user in the query responders group, who will respond and then pass it back to original user.
How do I display a drop down list of users in a particular group?
How can I select a user and assign the next task to them?
The relevant part of the process is this - I want to pass control from the query swim lane to a particular user in the query responders group, who will respond and then pass it back to original user.
Have a look at this question/answer.
http://community.bonitasoft.com/node/24221#node-24226
- getUsersInGroup gets the users. Just add to a JSON string and use this to fill the drop down list.
- return the selected user via contract
3.1) Start the Process and get the id
3.2) using the id get the human task activity id
3.3) assign the selected user to the human task activity
- regarding returning back to the original user I’ll leave that up to you
regards
Seán
PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply.
I solved the problem of assigning the user with an actor filter - I have the assigned to user in a string and I used the following script to get the id:
Object queryUser
queryUser = apiAccessor.getIdentityAPI().getUserByUserName(queryAssignedToUser)
long queryUserId
queryUserId = queryUser.getId()
return queryUserId