processResource.setXmlContent(process.xml());
}
// WSDL for the process
workflowWSDLresource = wsdlResourceMap.remove(PROCESS_WSDL_TYTLE);
WsdlDefinitions workflowWSDL = workflow.getWorkflowWSDL();
logger.finest(workflowWSDL.xmlString());
if (workflowWSDLresource == null) {
workflowWSDLresource = new GcWsdlResource(PROCESS_WSDL_TYTLE,
workflowWSDL);
links.add(workflowWSDLresource);
} else {
workflowWSDLresource.setXmlContent(workflowWSDL.xml());
}
Map<String, WsdlDefinitions> wsdlMap = workflow.getWSDLs();
for (String id : wsdlMap.keySet()) {
WsdlDefinitions wsdl = wsdlMap.get(id);
GcWsdlResource wsdlResource = wsdlResourceMap.remove(id);
if (wsdlResource == null) {
wsdlResource = new GcWsdlResource(id, wsdl);
links.add(wsdlResource);
} else {
wsdlResource.setXmlContent(wsdl.xml());
}
}
// Remove the rest of unused WSDL from the links.
for (GcWsdlResource resource : wsdlResourceMap.values()) {