cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the task by using task id?

vamsinipun
Star Contributor
Star Contributor

Hi Team,

     I am new to activiti. please tell me how to get the task object by using task id?

1 ACCEPTED ANSWER

vidhipanchal
Star Contributor
Star Contributor

Hi,

You can get task object from task id by using workflow service java api as follows :

WorkflowTask task = workflowService().getTaskById(taskId);

Note : You have to register WorkflowService in bean.

Thanks,

Contcentric

Regards,
Vidhi

View answer in original post

1 REPLY 1

vidhipanchal
Star Contributor
Star Contributor

Hi,

You can get task object from task id by using workflow service java api as follows :

WorkflowTask task = workflowService().getTaskById(taskId);

Note : You have to register WorkflowService in bean.

Thanks,

Contcentric

Regards,
Vidhi