How can I atribute visibility and invisibility to tasks.

1
0
-1

Hi.

I have a process started by admin, and he need to start multiple times
when comes to a user Lane, can be start by any user of the group, i need when a user DO the first task of his lane, the process case tasks related can be only viewed by him. and others cases tasks will set invisible to him, up until the case who he was doing finishes by admin.

Thanks before hand.

Peter Grant.

1 answer

1
0
-1
This one is the BEST answer!

hideTasks(BonitaUsers.getUserId(apiAccessor,taskAssigneeId), tsk2_processID)....

But instead of tsk2_processID, i need to hide all process who doesn't fit the value, how can i do this??

Comments

Submitted by Sean McP on Sat, 05/21/2016 - 07:46
  1. for (task : tasks){
  2. if(tskx_processID != tsk2_processID) {
  3. hideTasks(BonitaUsers.getUserId(apiAccessor,taskAssigneeId), tskx_processID)
  4. }
  5. }

regards
Seán

Submitted by phenant on Mon, 05/23/2016 - 19:57

Thanks Sean so much for your reply, but the loop variables (task : task) work in this matter? and the "tskx_processID" its a list of instanceprocessID? I understood the method and logic, but the variable, for me, is not familiar. Can you be diadactic with me, or another viewer who understand my problem help me in the problem.

Thanks before hand.

Peter Grant

Notifications