JBoss Community

Re: From Task to TaskSummary

created by suprit chaudhary in jBPM - View the full discussion

Sample Code:

 

/// filter for task status

List<Status> statusList = new ArrayList<Status>();

statusList.add(Status.Created);

           

TaskService taskClient = new SyncTaskServiceWrapper(new AsyncMinaTaskClient());

taskClient.connect();

                       

List<TaskSummary> taskSummaryList = taskClient.getTasksOwned(processId, statusList, "");

 

Also ref: https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask/HumanTaskExample.java

Reply to this message by going to Community

Start a new discussion in jBPM at Community