How do I assign a task to a user within a process in Bonita 6.5?

1
0
-1

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.

nch.png

1 answer

1
0
-1
This one is the BEST answer!

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

1) getUsersInGroup gets the users. Just add to a JSON string and use this to fill the drop down list.
2) 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
4) 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.

Comments

Submitted by dale.ellis on Tue, 10/04/2016 - 16:32

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

Notifications