protected void loadContent() { if (wfEngine_ == null) { wfEngine_ = LocalWorkflowRuntimeEngineFactory.getRuntimeEngine(); taskService_ = wfEngine_.getLocalTaskService(); ObservableList<LocalTask> tasks = new ObservableListWrapper<LocalTask>(taskService_.getOpenOwnedTasks(user)); taskTable.setItems(tasks); } else { refreshContent(); } }
private void refreshContent() { taskTable.getItems().clear(); taskTable.getItems().addAll(taskService_.getOpenOwnedTasks("alejandro")); }