public void resolve(BPELImplementation implementation, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { if( implementation != null && implementation.isUnresolved()) { implementation.setModelResolver(resolver); BPELProcessDefinition processDefinition = resolveBPELProcessDefinition(implementation, resolver, context); //resolveBPELImports(processDefinition, resolver); if(processDefinition.isUnresolved()) { error(context.getMonitor(), "BPELProcessNotFound", implementation, processDefinition.getName()); } else { implementation.setProcessDefinition(processDefinition); // Get the component type from the process definition generateComponentType( implementation, context.getMonitor() ); //set current implementation resolved implementation.setUnresolved(false); } } } // end resolve
public BPELImplementation read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { assert IMPLEMENTATION_BPEL_QNAME.equals(reader.getName()); // Read an <implementation.bpel> element BPELImplementation implementation = null; // Read the process attribute. QName process = getAttributeValueNS(reader, PROCESS, context.getMonitor()); if (process == null) { return implementation; } // Create and initialize the BPEL implementation model implementation = bpelFactory.createBPELImplementation(); implementation.setProcess(process); implementation.setUnresolved(true); // Skip to end element while (reader.hasNext()) { if (reader.next() == END_ELEMENT && IMPLEMENTATION_BPEL_QNAME.equals(reader.getName())) { break; } } return implementation; }
String scaName = pLink.getSCAName(); if (pLink.querySCAType().equals("reference")) { componentType.getReferences().add(generateReference(scaName, pLink.getMyRolePortType(), pLink.getPartnerRolePortType(), theProcess.getInterfaces(), monitor)); } else { componentType.getServices().add(generateService(scaName, pLink.getMyRolePortType(), pLink.getPartnerRolePortType(), theProcess.getInterfaces(), monitor));
String fullValue = reader.getAttributeValue(null, attribute); if (fullValue == null) { error(monitor, "AttributeProcessMissing", reader); return null; error(monitor, "AttributeWithoutNamespace", reader, attribute, fullValue); return null; error(monitor, "AttributeWithoutPrefix", reader, attribute, fullValue); return null; String nsUri = reader.getNamespaceContext().getNamespaceURI(prefix); if (nsUri == null) { error(monitor, "AttributeUnrecognizedNamespace", reader, attribute, fullValue); return null;
String scaName = pLink.getSCAName(); if (pLink.querySCAType().equals("reference")) { componentType.getReferences().add(generateReference(scaName, pLink.getMyRolePortType(), pLink.getPartnerRolePortType(), theProcess.getInterfaces(), monitor)); } else { componentType.getServices().add(generateService(scaName, pLink.getMyRolePortType(), pLink.getPartnerRolePortType(), theProcess.getInterfaces(), monitor));
String fullValue = reader.getAttributeValue(null, attribute); if (fullValue == null) { error(monitor, "AttributeProcessMissing", reader); return null; error(monitor, "AttributeWithoutNamespace", reader, attribute, fullValue); return null; error(monitor, "AttributeWithoutPrefix", reader, attribute, fullValue); return null; String nsUri = reader.getNamespaceContext().getNamespaceURI(prefix); if (nsUri == null) { error(monitor, "AttributeUnrecognizedNamespace", reader, attribute, fullValue); return null;
public void resolve(BPELImplementation implementation, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { if( implementation != null && implementation.isUnresolved()) { implementation.setModelResolver(resolver); BPELProcessDefinition processDefinition = resolveBPELProcessDefinition(implementation, resolver, context); //resolveBPELImports(processDefinition, resolver); if(processDefinition.isUnresolved()) { error(context.getMonitor(), "BPELProcessNotFound", implementation, processDefinition.getName()); } else { implementation.setProcessDefinition(processDefinition); // Get the component type from the process definition generateComponentType( implementation, context.getMonitor() ); //set current implementation resolved implementation.setUnresolved(false); } } } // end resolve
error(monitor, "MyRolePartnerRoleNull", theInterfaces); error(monitor, "NoInterfaceForPortType", theInterfaces, callPT.getQName().toString()); } else service.getInterfaceContract().setInterface(callInterface); error(monitor, "NoInterfaceForPortType", theInterfaces, callbackPT.getQName().toString()); } else service.getInterfaceContract().setCallbackInterface(callbackInterface);
public BPELImplementation read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { assert IMPLEMENTATION_BPEL_QNAME.equals(reader.getName()); // Read an <implementation.bpel> element BPELImplementation implementation = null; // Read the process attribute. QName process = getAttributeValueNS(reader, PROCESS, context.getMonitor()); if (process == null) { return implementation; } // Create and initialize the BPEL implementation model implementation = bpelFactory.createBPELImplementation(); implementation.setProcess(process); implementation.setUnresolved(true); // Skip to end element while (reader.hasNext()) { if (reader.next() == END_ELEMENT && IMPLEMENTATION_BPEL_QNAME.equals(reader.getName())) { break; } } return implementation; }
error(monitor, "MyRolePartnerRoleNull", theInterfaces); error(monitor, "NoInterfaceForPortType", theInterfaces, callPT.getQName().toString()); } else service.getInterfaceContract().setInterface(callInterface); error(monitor, "NoInterfaceForPortType", theInterfaces, callbackPT.getQName().toString()); } else service.getInterfaceContract().setCallbackInterface(callbackInterface);
error(monitor, "MyRolePartnerRoleNull", theInterfaces); error(monitor, "NoInterfaceForPortType", theInterfaces, callPT.getQName().toString()); } else reference.getInterfaceContract().setInterface(callInterface); error(monitor, "NoInterfaceForPortType", theInterfaces, callbackPT.getQName().toString()); } else reference.getInterfaceContract().setCallbackInterface(callbackInterface);
error(monitor, "MyRolePartnerRoleNull", theInterfaces); error(monitor, "NoInterfaceForPortType", theInterfaces, callPT.getQName().toString()); } else reference.getInterfaceContract().setInterface(callInterface); error(monitor, "NoInterfaceForPortType", theInterfaces, callbackPT.getQName().toString()); } else reference.getInterfaceContract().setCallbackInterface(callbackInterface);