How can I atribute visibility and invisibility to tasks.

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.

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??

for (task : tasks){ if(tskx_processID != tsk2_processID) { hideTasks(BonitaUsers.getUserId(apiAccessor,taskAssigneeId), tskx_processID) } } regards Seán

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