How to get the task by using task id?

cancel
Showing results for 
Search instead for 
Did you mean: 
Established Member

How to get the task by using task id?

Jump to solution

Hi Team,

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

1 Solution

Accepted Solutions
Established Member

Re: How to get the task by using task id?

Jump to solution

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

View solution in original post

1 Reply
Established Member

Re: How to get the task by using task id?

Jump to solution

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

View solution in original post