DeployPipelineActivityVisitor visitor = new DeployPipelineActivityVisitor();
List<PipelineActivity> activities = pipeline.getActivities();
List<IntegrationId> functions = Lists.newArrayList();
for (PipelineActivity activity : activities) {
visitor.visit(activity);
IntegrationId functionId = visitor.getFunctionId();
if (functionId != null) {
functions.add(functionId);
}
}
if (functions.size() > 1) {
// If there is more than one function then we must handle it using chain links.
IntegrationId functionId = functions.get(0);
String[] fields = null;
for (int i = 1, N = functions.size(); i < N; ++i) {
IntegrationId nextFunctionId = functions.get(i);
fields = TransformationChainLink.getPropertyValues(operation, functionId, nextFunctionId);
m_updatedTranChainLinks.add(getInterchangeDataRow(fields));
functionId = nextFunctionId;
}
}