/** * @param logs * @param firstOrg * @param secondOrg * @return */ private ProMSplitPane additionalDependencyPanelCreator( OrganizationalLogs logs, int firstOrg, int secondOrg) { ProMSplitPane splitPanelRefinedActivity = new ProMSplitPane(); splitPanelRefinedActivity.setBackground(null); ProMTable comp = additionalDependencyTableCreator(logs, firstOrg, secondOrg); if (comp == null) return null; JTextPane textField = new JTextPane(); textField.setContentType("text/html"); textField.setText( fontBlack6 + "Additional Dependencies (" + comp.getTable().getRowCount() + ")</font><hr>" + fontBlack4 + " This pattern is a special case of different dependencies where one set of activities includes the other and results with additional dependencies. In the list you can see additional dependency sets in two organizations as " + logs.organizationNames.get(firstOrg) + "(Selected) and " + logs.organizationNames.get(secondOrg) + "(Other)."); textField.setEditable(false); textField.setBackground(new Color(192, 192, 192)); JScrollPane scrollPane = new JScrollPane(textField); scrollPane.setPreferredSize(new Dimension(500, 0)); splitPanelRefinedActivity.setLeftComponent(comp); splitPanelRefinedActivity.setRightComponent(scrollPane); return splitPanelRefinedActivity; }
/** * @param logs * @param firstOrg * @param secondOrg * @return */ private ProMSplitPane differentConditionsPanelCreator( OrganizationalLogs logs, int firstOrg, int secondOrg) { ProMSplitPane splitPanelRefinedActivity = new ProMSplitPane(); splitPanelRefinedActivity.setBackground(null); ProMTable comp = differentConditionsTableCreator(logs, firstOrg, secondOrg); if (comp == null) return null; JTextPane textField = new JTextPane(); textField.setContentType("text/html"); textField.setText( fontBlack6 + "Different Conditions for Occurrence (" + comp.getTable().getRowCount() + ")</font><hr>" + fontBlack4 + "Set of dependencies are same for two processes; however, occurrence condition is different in organizations. In the list you can see different occurrence conditions in two organizations as " + logs.organizationNames.get(firstOrg) + "(Selected) and " + logs.organizationNames.get(secondOrg) + "(Other)."); textField.setEditable(false); textField.setBackground(new Color(192, 192, 192)); JScrollPane scrollPane = new JScrollPane(textField); scrollPane.setPreferredSize(new Dimension(500, 0)); splitPanelRefinedActivity.setLeftComponent(comp); splitPanelRefinedActivity.setRightComponent(scrollPane); return splitPanelRefinedActivity; }
/** * @param logs * @param firstOrg * @param secondOrg * @return */ private ProMSplitPane refinedActivityPanelCreator( OrganizationalLogs logs, int firstOrg, int secondOrg) { ProMSplitPane splitPanelRefinedActivity = new ProMSplitPane(); splitPanelRefinedActivity.setBackground(null); ProMTable comp = refinedActivityTableCreator(logs, firstOrg, secondOrg); if (comp == null) return null; JTextPane textField = new JTextPane(); textField.setContentType("text/html"); textField.setText( fontBlack6 + "Refined Activities (" + comp.getTable().getRowCount() + ")</font><hr>" + fontBlack4 + "An activity exists in one process but, as an equivalent, a collection of activitiesare existing in the other process to achieve the same task. In the list you can see the refined activity in " + logs.organizationNames.get(firstOrg) + " and a potential list of activities in " + logs.organizationNames.get(secondOrg) + "."); textField.setEditable(false); textField.setBackground(new Color(192, 192, 192)); JScrollPane scrollPane = new JScrollPane(textField); scrollPane.setPreferredSize(new Dimension(500, 0)); splitPanelRefinedActivity.setLeftComponent(comp); splitPanelRefinedActivity.setRightComponent(scrollPane); return splitPanelRefinedActivity; }
/** * @param logs * @param firstOrg * @param secondOrg * @return */ private ProMSplitPane skippedActivityPanelCreator( OrganizationalLogs logs, int firstOrg, int secondOrg) { ProMSplitPane splitPanelSkippedActivity = new ProMSplitPane(); splitPanelSkippedActivity.setBackground(null); ProMTable comp = null; if (firstOrg == secondOrg) { comp = skippedActivityTableCreator(logs, firstOrg); } else { comp = skippedActivityTableCreator(logs, secondOrg); } if (comp == null) return null; JTextPane textField = new JTextPane(); textField.setContentType("text/html"); if (firstOrg == secondOrg) { textField.setText( fontBlack6 + "Skipped Activities (" + comp.getTable().getRowCount() + ") </font><hr>" + fontBlack4 + " An activity exists in one process but no equivalent activity is found in the other process. In the list you can see the skipped activities in " + logs.organizationNames.get(firstOrg) + "."); } else { textField.setText( fontBlack6 + "Skipped Activities (" + comp.getTable().getRowCount() + ")</font><hr>" + fontBlack4 + " An activity exists in one process but no equivalent activity is found in the other process. In the list you can see the skipped activities in " + logs.organizationNames.get(secondOrg) + " compared to " + logs.organizationNames.get(firstOrg) + "."); } textField.setEditable(false); textField.setBackground(new Color(192, 192, 192)); JScrollPane scrollPane = new JScrollPane(textField); scrollPane.setPreferredSize(new Dimension(500, 0)); splitPanelSkippedActivity.setLeftComponent(comp); splitPanelSkippedActivity.setRightComponent(scrollPane); return splitPanelSkippedActivity; }
/** * @param logs * @param i * @return */ private ProMTable skippedActivityTableCreator(OrganizationalLogs logs, int i) { List<String> skippedActivities = logs.mismatchPatterns.skippedActivityComplete.get(i); if (skippedActivities.size() == 0) return null; String[][] data = new String[skippedActivities.size()][1]; int j = 0; for (String skipped : skippedActivities) { data[j][0] = skipped; j++; } DefaultTableModel tbModel = new NonEditableModel(data, new String[] {"Skipped Activities"}); ProMTable table = new ProMTable(tbModel); table.setEnabled(false); return table; }