use of org.apache.airavata.workflow.model.component.ws.WSComponentApplication in project airavata by apache.
the class WSNode method parse.
protected void parse(JsonObject nodeObject) {
super.parse(nodeObject);
JsonObject applicationObject = nodeObject.getAsJsonObject("Application");
WSComponentApplication application = WSComponentApplication.parse(applicationObject);
try {
setComponent(new WSComponent(application));
} catch (ComponentException e) {
log.error(e.getMessage(), e);
}
}
use of org.apache.airavata.workflow.model.component.ws.WSComponentApplication in project airavata by apache.
the class WSNode method parse.
/**
* @see org.apache.airavata.workflow.model.graph.impl.NodeImpl#parse(org.xmlpull.infoset.XmlElement)
*/
@Override
protected void parse(XmlElement nodeElement) throws GraphException {
super.parse(nodeElement);
XmlElement element = nodeElement.element(null, "Application");
WSComponentApplication application = WSComponentApplication.parse(element);
try {
setComponent(new WSComponent(application));
} catch (ComponentException e) {
log.error(e.getMessage(), e);
}
// XmlElement wsdlElement = nodeElement.element(null, GraphSchema.NODE_WSDL_QNAME_TAG);
// if (wsdlElement != null) {
// this.wsdlID = wsdlElement.requiredText();
// // String wsdlQNameString = wsdlElement.requiredText();
// // this.wsdlQName = QName.valueOf(wsdlQNameString);
// }
//
// XmlElement portTypeElement = nodeElement.element(null, GraphSchema.NODE_WSDL_PORT_TYPE_TAG);
// if (portTypeElement != null) {
// String portTypeString = portTypeElement.requiredText();
// this.portTypeQName = QName.valueOf(portTypeString);
// }
//
// XmlElement operationElement = nodeElement.element(null, GraphSchema.NODE_WSDL_OPERATION_TAG);
// if (operationElement != null) {
// this.operationName = operationElement.requiredText();
// }
}
Aggregations