public static boolean isContainerAdHoc(FlowElementsContainer container) { if (container instanceof Process) { Process process = (Process) container; Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (container instanceof AdHocSubProcess) { return true; } return false; } }
public static boolean isContainerAdHoc(FlowElementsContainer container) { if (container instanceof Process) { Process process = (Process) container; Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (container instanceof AdHocSubProcess) { return true; } return false; } }
public static boolean isContainerAdHoc(FlowElementsContainer container) { if (container instanceof Process) { Process process = (Process) container; Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (container instanceof AdHocSubProcess) { return true; } return false; } }
public static boolean isAdHoc(FlowElement element) { if (element.eContainer() instanceof Process) { Process process = (Process) element.eContainer(); Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (element instanceof AdHocSubProcess) { return true; } return false; }
public static boolean isAdHoc(FlowElement element) { if (element.eContainer() instanceof Process) { Process process = (Process) element.eContainer(); Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (element instanceof AdHocSubProcess) { return true; } return false; }
public static boolean isAdHoc(FlowElement element) { if (element.eContainer() instanceof Process) { Process process = (Process) element.eContainer(); Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (element instanceof AdHocSubProcess) { return true; } return false; }
private String getProcessPropertyValue(Process process, String propertyName) { Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if (propertyName.equals(entry.getEStructuralFeature().getName())) { return entry.getValue().toString(); } } return null; }
private String getProcessPropertyValue(Process process, String propertyName) { Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if (propertyName.equals(entry.getEStructuralFeature().getName())) { return entry.getValue().toString(); } } return null; }
SimpleFeatureMapEntry extensionEntry = new SimpleFeatureMapEntry(extensionAttribute, properties.get("package")); process.getAnyAttribute().add(extensionEntry); SimpleFeatureMapEntry extensionEntry = new SimpleFeatureMapEntry(extensionAttribute, properties.get("version")); process.getAnyAttribute().add(extensionEntry);
SimpleFeatureMapEntry extensionEntry = new SimpleFeatureMapEntry(extensionAttribute, properties.get("adhocprocess")); rootLevelProcess.getAnyAttribute().add(extensionEntry); SimpleFeatureMapEntry extensionEntry = new SimpleFeatureMapEntry(extensionAttribute, properties.get("adhocprocess")); rootLevelProcess.getAnyAttribute().add(extensionEntry);
Iterator<FeatureMap.Entry> iter = ((Process) rootElement).getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next();