cancel
Showing results for 
Search instead for 
Did you mean: 

Get Task Assignee

shagufta1
Champ in-the-making
Champ in-the-making
Hello,

I am newbie to activiti. I have one single form with lots of field but now I want to set visibility of the form fields according to the assignee of the task(User Task) how can I achieve that getting current task assignee on form rendered event and manipulating the form field?

thanks
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
That's not available out of the box. You would need custom javascript for that, for example via https://docs.alfresco.com/activiti/docs/dev-guide/1.4.0/#_start_and_task_form_customisation  or using the 'javascript' tab on the form.

shagufta1
Champ in-the-making
Champ in-the-making
Thank you so much GOT it… and one more question is how can i create user dynamically in my service task and also assign them the task?

Thanks in advance. Smiley Happy

jbarrez
Star Contributor
Star Contributor
Your service task would need to be a Spring bean. In it, inject the UserService (to create the user) and the taskService (to assign tasks).

shagufta1
Champ in-the-making
Champ in-the-making
Thanks alot joram…!!