PipelinePositionStruct[] plugins = null;
if (pluginsToRun != null && pluginsToRun.length > 0) {
plugins = new PipelinePositionStruct[pluginsToRun.length];
int index = 0;
for (PipelinePosition plugin : pluginsToRun) {
PipelinePositionStruct pps = new PipelinePositionStruct();
pps.setEntityType(plugin.getEntityType().getId());
pps.setExecutionOrder(plugin.getExecutionOrder());
pps.setPluginGuid(plugin.getPluginId().getName());
pps.setRelativePosition(plugin.getRelativePosition().toString());
plugins[index++] = pps;
}
}
try {