07-18-2011 03:04 AM
07-18-2011 04:00 AM
Hello,
How I can get current task of process(usertask or other) ?
List<Task> taskListe = Engine… …getTaskService().createTaskQuery()
.processInstanceId(pi1.getProcessInstanceId()).list();
07-18-2011 04:13 AM
Hello,
How I can get current task of process(usertask or other) ?
To get informations from the activiti system you have to use the querries you can find in the API documentation.
Every context has it's own query objects. In case of the tasks it is the TaskQuery.
To find all tasks belonging to a process instance pi1 you could do something like that….List<Task> taskListe = Engine… …getTaskService().createTaskQuery()
.processInstanceId(pi1.getProcessInstanceId()).list();
07-18-2011 06:21 AM
07-18-2011 06:25 AM
Hi werdn,
the list() methode gives you only the task or tasks that are currently active,
concerning to other filter criteria you use in the query. It doesn't give you all tasks
defined in the process definition!
Best regards,
Micha
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.