private void createInteractiveAccessPoint(ContextType contextType) { contextType.getAccessPoint().add(element); if (contextType.getType().getId().equals(ModelerConstants.EXTERNAL_WEB_APP_CONTEXT_TYPE_KEY)) { AttributeUtil.setAttribute(element, "RootElement", element.getId()); TransformationProperty property = MappingFactory.eINSTANCE.createTransformationProperty(); String xmlString = MappingModelUtil.transformEcore2XML(property); AttributeUtil.setAttribute( contextType, "messageTransformation:TransformationProperty", xmlString); } }
private void createExternalWebApplicationAccessPoint(ApplicationType applicationType) { ContextType contextType = getModelBuilderFacade() .getApplicationContext( applicationType, ModelerConstants.EXTERNAL_WEB_APP_CONTEXT_TYPE_KEY); contextType.getAccessPoint().add(element); AttributeUtil.setAttribute( element, "carnot:engine:path:separator", StructuredDataConstants.ACCESS_PATH_SEGMENT_SEPARATOR); // $NON-NLS-1$ AttributeUtil.setBooleanAttribute(element, "carnot:engine:data:bidirectional", true); AttributeUtil.setAttribute(element, "RootElement", element.getId()); TransformationProperty property = MappingFactory.eINSTANCE.createTransformationProperty(); String xmlString = MappingModelUtil.transformEcore2XML(property); AttributeUtil.setAttribute( contextType, "messageTransformation:TransformationProperty", xmlString); }