As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Task tasks = processEngine.getTaskService().createTaskQuery().taskDefinitionKey("fof").list();
Task tasks = processEngine.getTaskService().getNextTask(User currentUser);
I know there is processEngine.getTaskService().createTaskQuery().taskAssignee(), but is returns all the tasks that are assigned to a specific user and not the next task for the user.
List<Task> tasks = processEngine.getTaskService().createTaskQuery().taskDefinitionKey("TA").list();<br>
why do we need to pass TaskDefinitionKey in order to fetch the task object
Yes you are right,but to query by assignee first we need to set the assignee. I am stuck here itself,suppose two user task with two different assignee.On starting the process i get access to only first user task because for activiti engine the 2nd user task doesn't exist still.But i want to pre-assign the assignee to all user tasks and start the process flow,querying by assignee.