Search in sources :

Example 1 with SystemComponentDataPort

use of org.apache.airavata.workflow.model.component.system.SystemComponentDataPort in project airavata by apache.

the class WSPort method getComponentPort.

/**
 * @see org.apache.airavata.workflow.model.graph.impl.PortImpl#getComponentPort()
 */
@Override
public WSComponentPort getComponentPort() {
    if (this.componentPort == null) {
        ComponentPort port = super.getComponentPort();
        if (port instanceof WSComponentPort) {
            this.componentPort = (WSComponentPort) port;
        }
        if (port instanceof SystemComponentDataPort) {
            // XXX to handle the xwf created by version 2.6.2_XX or earlier.
            SystemComponentDataPort systemPort = (SystemComponentDataPort) port;
            this.componentPort = new WSComponentPort(systemPort.getName(), systemPort.getType(), null);
        }
    }
    return this.componentPort;
}
Also used : SystemComponentDataPort(org.apache.airavata.workflow.model.component.system.SystemComponentDataPort) ComponentPort(org.apache.airavata.workflow.model.component.ComponentPort) WSComponentPort(org.apache.airavata.workflow.model.component.ws.WSComponentPort) WSComponentPort(org.apache.airavata.workflow.model.component.ws.WSComponentPort)

Example 2 with SystemComponentDataPort

use of org.apache.airavata.workflow.model.component.system.SystemComponentDataPort in project airavata by apache.

the class IfNode method addInputPort.

/**
 * Adds additional input port.
 */
public void addInputPort() {
    IfComponent component = getComponent();
    SystemComponentDataPort input = component.getInputPort();
    SystemDataPort port = input.createPort();
    addInputPort(port);
}
Also used : SystemComponentDataPort(org.apache.airavata.workflow.model.component.system.SystemComponentDataPort) IfComponent(org.apache.airavata.workflow.model.component.system.IfComponent)

Example 3 with SystemComponentDataPort

use of org.apache.airavata.workflow.model.component.system.SystemComponentDataPort in project airavata by apache.

the class ReceiveNode method addOutputPort.

/**
 * Adds additional output port.
 */
public void addOutputPort() {
    ReceiveComponent component = getComponent();
    SystemComponentDataPort outputPort = component.getOutputPort();
    SystemDataPort port = outputPort.createPort();
    addOutputPort(port);
}
Also used : SystemComponentDataPort(org.apache.airavata.workflow.model.component.system.SystemComponentDataPort) ReceiveComponent(org.apache.airavata.workflow.model.component.system.ReceiveComponent)

Aggregations

SystemComponentDataPort (org.apache.airavata.workflow.model.component.system.SystemComponentDataPort)3 ComponentPort (org.apache.airavata.workflow.model.component.ComponentPort)1 IfComponent (org.apache.airavata.workflow.model.component.system.IfComponent)1 ReceiveComponent (org.apache.airavata.workflow.model.component.system.ReceiveComponent)1 WSComponentPort (org.apache.airavata.workflow.model.component.ws.WSComponentPort)1