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.
Hello, How I can get current task of process(usertask or other) ?
List<Task> taskListe = Engine… …getTaskService().createTaskQuery()<br> .processInstanceId(pi1.getProcessInstanceId()).list();
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()<br> .processInstanceId(pi1.getProcessInstanceId()).list();
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