public TraversableSingleActivityOutput addActivity(
RequestNode source,
Exchange exchange,
PipelineWorkflow pipeline)
{
ProcessingElement getDS = new ProcessingElement("eu.admire.GetGatewayDataSource");
getDS.createOutput(GetGatewayDataSourceResourceRESTActivity.OUTPUT);
getDS.createInput(GetGatewayDataSourceResourceRESTActivity.INPUT_GATEWAY_URI);
getDS.createInput(GetGatewayDataSourceResourceRESTActivity.INPUT_RESULT_NAME);
ExternalInputNode output = (ExternalInputNode)source;
getDS.addInput(
GetGatewayDataSourceResourceRESTActivity.INPUT_GATEWAY_URI,
new StringData(output.getGatewayAddress()));
getDS.addInput(
GetGatewayDataSourceResourceRESTActivity.INPUT_RESULT_NAME,
new StringData(output.getResultName()));
pipeline.add(getDS);
return getDS.getOutput(GetGatewayDataSourceResourceRESTActivity.OUTPUT);
}