Search in sources :

Example 1 with SimpleTaskSummariesModel

use of com.salaboy.jbpm5.dev.guide.tablemodel.SimpleTaskSummariesModel in project jBPM5-Developer-Guide by Salaboy.

the class TasksListUI method refreshTaskList.

private void refreshTaskList() {
    String selectedUser = (String) selectedUserjComboBox.getSelectedItem();
    System.out.println("Selected User: " + selectedUser);
    List<TaskSummary> tasks = localTaskService.getTasksAssignedAsPotentialOwner(selectedUser, "en-UK");
    System.out.println("Tasks: " + tasks + " - size: " + tasks.size());
    String selectedPerspective = (String) perspectivejComboBox.getItemAt(perspectivejComboBox.getSelectedIndex());
    if (selectedPerspective.equals("Simple")) {
        taskSummariesjTable.setModel(new SimpleTaskSummariesModel(tasks));
    } else {
        taskSummariesjTable.setModel(new DetailedTaskSummariesModel(tasks));
    }
}
Also used : TaskSummary(org.jbpm.task.query.TaskSummary) DetailedTaskSummariesModel(com.salaboy.jbpm5.dev.guide.tablemodel.DetailedTaskSummariesModel) SimpleTaskSummariesModel(com.salaboy.jbpm5.dev.guide.tablemodel.SimpleTaskSummariesModel)

Aggregations

DetailedTaskSummariesModel (com.salaboy.jbpm5.dev.guide.tablemodel.DetailedTaskSummariesModel)1 SimpleTaskSummariesModel (com.salaboy.jbpm5.dev.guide.tablemodel.SimpleTaskSummariesModel)1 TaskSummary (org.jbpm.task.query.TaskSummary)1