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;
}
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);
}
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);
}
Aggregations