Skip to content

Commit

Permalink
Add an option to the manage view to show all flows "In Error". Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Sep 21, 2016
1 parent 0152cda commit 4be7d4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
public class ManageNavigator extends Panel {

protected static final Name CURRENTLY_RUNNING = new Name("Currently Running");

protected static final Name IN_ERROR = new Name("In Error");

TreeTable treeTable;

Expand Down Expand Up @@ -110,6 +112,11 @@ public void refresh() {
treeTable.setChildrenAllowed(CURRENTLY_RUNNING, false);
treeTable.setItemIcon(CURRENTLY_RUNNING, FontAwesome.GEARS);

treeTable.addItem(IN_ERROR);
treeTable.setChildrenAllowed(IN_ERROR, false);
treeTable.setItemIcon(IN_ERROR, FontAwesome.WARNING);


treeTable.addItem(agentsFolder);
treeTable.setItemIcon(agentsFolder, FontAwesome.FOLDER);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ public Object getBackgroundData() {
if (currentSelection.equals(ManageNavigator.CURRENTLY_RUNNING)) {
statusSelect.setValue(ExecutionStatus.RUNNING.name());
statusSelect.setReadOnly(true);
} else if (currentSelection.equals(ManageNavigator.IN_ERROR)) {
statusSelect.setValue(ExecutionStatus.ERROR.name());
statusSelect.setReadOnly(true);
} else if (currentSelection instanceof Agent) {
params.put("agentId", ((Agent) currentSelection).getId());
} else if (currentSelection instanceof AgentName) {
Expand Down

0 comments on commit 4be7d4f

Please sign in to comment.