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));
}
}
Aggregations