List<Tuple2<OutputDescription, ExternalIoDescriptionProcessor>> outputs) {
assert graph != null;
assert inputs != null;
assert outputs != null;
boolean valid = true;
Repository externals = environment.getExternals();
for (FlowIn<?> port : graph.getFlowInputs()) {
InputDescription desc = port.getDescription();
ExternalIoDescriptionProcessor processor = externals.findProcessor(desc);
if (processor != null) {
inputs.add(Tuples.of(desc, processor));
} else {
environment.error(
"{0}を処理するプロセッサが見つかりませんでした。",
desc.getClass().getName());
valid = false;
}
}
for (FlowOut<?> port : graph.getFlowOutputs()) {
OutputDescription desc = port.getDescription();
ExternalIoDescriptionProcessor processor = externals.findProcessor(desc);
if (processor != null) {
outputs.add(Tuples.of(desc, processor));
} else {
valid = false;
}