Bonitasoft 6.4 how to assign specific user to next task

1
0
-1

Hello guys,

I've followed this example

Hello may be this help you , i can explain how to give user to choice next task assign to which user pl do following

Detail Process :

create simple process with 2 tasks : start -> task1 -> tast2 -> end create data variable : uId with type: Long step 1 -> application -> page-flow -> add Page-flow (form) in page flow - > take one select box -> select-box's data tab -> available value -> paste following script import org.bonitasoft.engine.identity.*;

List users = apiAccessor.getIdentityAPI().getUsers(0, 200, UserCriterion.FIRST_NAME_ASC); Map<String,Long> combo = new HashMap<String,Long>();

for(User u:users) { combo.put(u.getFirstName(),u.getId()); }

return combo in output operation : first filed - select that variable (uid) takes value of field - click on pencil (script) paste following def long l = Long.parseLong(field_Select1); task 2 -> actor --> set actor filter -> add Uid variable now run process .

(in task 1 user can see list of users , after it select any specific user , selected user's id store into UID variable task 2 use actor filter and get that UID and assigned that task to that specific user . )

And I changed the return type to a map, but I still get this error:

**def long l = Long.parseLong(field_Select1);not compatible with the expression return type java.lang.long.

2 answers

1
+1
-1

Hi,

I do your example, you can download it here: http://dl.free.fr/vGWV6pVx7

Copy paste it on your diagram folder (C:\BonitaBPMSubscription-6.3.5\workspace\default\diagrams) and open it in BonitaBPM. If you have questions, do not hesitate.

1
0
-1

I did paste the file in my folder but i cant open it .

Comments

Submitted by sylvain.bailly on Thu, 01/08/2015 - 12:25

Someone can try to open it and see if it works?

Submitted by sylvain.bailly on Thu, 01/08/2015 - 16:59

Ok you can't open a 6.3 .proc file with a 6.4 version. I try it with somebody. It is strange that there is no compatibility. Perhaps a Bonita employee can confirm this.

Notifications