@Override public java.lang.String getValue(BaseElement element) { String defaultValue = element instanceof FlowElement ? ((FlowElement) element).getName() : this.defaultValue; return getStringValue(element).orElse(defaultValue); } };
public String getName() { String extendedName = CustomElement.name.of(element).get(); return extendedName == null || extendedName.isEmpty() ? Optional.ofNullable(flowElement.getName()).orElse("") : extendedName; } }
private Object getNamedFlowElement(Process process, Class cls, String name) { List<FlowElement> flowElements = process.getFlowElements(); for (FlowElement flowElement : flowElements) { if (cls.isInstance(flowElement) && name.equals(flowElement.getName())) { return flowElement; } } return null; }
private Object getNamedFlowElement(Process process, Class cls, String name) { List<FlowElement> flowElements = process.getFlowElements(); for (FlowElement flowElement : flowElements) { if (cls.isInstance(flowElement) && name.equals(flowElement.getName())) { return flowElement; } } return null; }
public static void printOutPaths(List<PathContext> paths, String name) { if (!"true".equalsIgnoreCase(System.getProperty("test.debug.off"))) { System.out.println("###################" + name + "###################"); for (PathContext context : paths) { System.out.println("PATH: " + context.getId()); System.out.println("AS TEXT:"); for (FlowElement fe : context.getPathElements()) { System.out.println(fe.getName() + " - " + fe.eClass().getName()); } } System.out.println("#####################################################"); } }
public static void printOutPaths(List<PathContext> paths, String name) { if (!"true".equalsIgnoreCase(System.getProperty("test.debug.off"))) { System.out.println("###################" + name + "###################"); for (PathContext context : paths) { System.out.println("PATH: " + context.getId()); System.out.println("AS TEXT:"); for (FlowElement fe : context.getPathElements()) { System.out.println(fe.getName() + " - " + fe.eClass().getName()); } } System.out.println("#####################################################"); } }
public static void printOutPaths(List<PathContext> paths, String name) { if (!"true".equalsIgnoreCase(System.getProperty("test.debug.off"))) { System.out.println("###################" + name + "###################"); for (PathContext context : paths) { System.out.println("PATH: " + context.getId()); System.out.println("AS TEXT:"); for (FlowElement fe : context.getPathElements()) { System.out.println(fe.getName() + " - " + fe.eClass().getName()); } } System.out.println("#####################################################"); } }
public static void printOutPaths(List<PathContext> paths, JSONObject jsonPaths, String name) { if (!"true".equalsIgnoreCase(System.getProperty("test.debug.off"))) { System.out.println("###################" + name + "###################"); for (PathContext context : paths) { System.out.println("$$$$$$$$ PATH: " + context.getId() + " " + context.getType()); System.out.println("$$$ AS TEXT:"); for (FlowElement fe : context.getPathElements()) { System.out.println(fe.getName() + " - " + fe.eClass().getName()); } } if (jsonPaths != null) { System.out.println("$$$ AS JSON:"); System.out.println(jsonPaths.toString()); System.out.println("$$$$$$$$"); } System.out.println("#####################################################"); } }
public static void printOutPaths(List<PathContext> paths, JSONObject jsonPaths, String name) { if (!"true".equalsIgnoreCase(System.getProperty("test.debug.off"))) { System.out.println("###################" + name + "###################"); for (PathContext context : paths) { System.out.println("$$$$$$$$ PATH: " + context.getId() + " " + context.getType()); System.out.println("$$$ AS TEXT:"); for (FlowElement fe : context.getPathElements()) { System.out.println(fe.getName() + " - " + fe.eClass().getName()); } } if (jsonPaths != null) { System.out.println("$$$ AS JSON:"); System.out.println(jsonPaths.toString()); System.out.println("$$$$$$$$"); } System.out.println("#####################################################"); } }
public static void printOutPaths(List<PathContext> paths, JSONObject jsonPaths, String name) { if (!"true".equalsIgnoreCase(System.getProperty("test.debug.off"))) { System.out.println("###################" + name + "###################"); for (PathContext context : paths) { System.out.println("$$$$$$$$ PATH: " + context.getId() + " " + context.getType()); System.out.println("$$$ AS TEXT:"); for (FlowElement fe : context.getPathElements()) { System.out.println(fe.getName() + " - " + fe.eClass().getName()); } } if (jsonPaths != null) { System.out.println("$$$ AS JSON:"); System.out.println(jsonPaths.toString()); System.out.println("$$$$$$$$"); } System.out.println("#####################################################"); } }
System.err.println("Following element not matched: " + fe.getId() + " " + fe.getName()); match = false; break;
System.err.println("Following element not matched: " + fe.getId() + " " + fe.getName()); match = false; break;
System.err.println("Following element not matched: " + fe.getId() + " " + fe.getName()); match = false; break;