Search in sources :

Example 1 with WSComponentApplication

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);
    }
}
Also used : WSComponent(org.apache.airavata.workflow.model.component.ws.WSComponent) ComponentException(org.apache.airavata.workflow.model.component.ComponentException) JsonObject(com.google.gson.JsonObject) WSComponentApplication(org.apache.airavata.workflow.model.component.ws.WSComponentApplication)

Example 2 with WSComponentApplication

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();
// }
}
Also used : WSComponent(org.apache.airavata.workflow.model.component.ws.WSComponent) ComponentException(org.apache.airavata.workflow.model.component.ComponentException) XmlElement(org.xmlpull.infoset.XmlElement) WSComponentApplication(org.apache.airavata.workflow.model.component.ws.WSComponentApplication)

Aggregations

ComponentException (org.apache.airavata.workflow.model.component.ComponentException)2 WSComponent (org.apache.airavata.workflow.model.component.ws.WSComponent)2 WSComponentApplication (org.apache.airavata.workflow.model.component.ws.WSComponentApplication)2 JsonObject (com.google.gson.JsonObject)1 XmlElement (org.xmlpull.infoset.XmlElement)1