if (inputNumber.length > 1) {
List<String> inputValues = createInputValues(listOfValues, inputNumber);
for (final Iterator<String> iterator = inputValues.iterator(); iterator.hasNext();) {
final String gfacURLString = this.getConfig().getConfiguration().getGFacURL().toString();
final String input = iterator.next();
WSComponent wsComponent = (WSComponent) middleNode.getComponent();
final Invoker invoker2 = createInvokerForEachSingleWSNode(middleNode, gfacURLString, wsComponent);
invokerList.add(invoker2);
new Thread() {
@Override
public void run() {
try {
getInvoker(middleNode, invoker2);
invokeGFacService(listOfValues, middleNode, inputNumber, input, invoker2);
} catch (WorkflowException e) {
WorkflowInterpreter.this.config.getGUI().getErrorWindow().error(e);
}
}
}.start();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
WorkflowInterpreter.this.config.getGUI().getErrorWindow().error(e);
}
}
} else {
Invoker invoker = null;
for (Iterator<String> iterator = listOfValues.iterator(); iterator.hasNext();) {
String input = iterator.next();
final String gfacURLString = this.getConfig().getConfiguration().getGFacURL().toString();
WSComponent wsComponent = (WSComponent) middleNode.getComponent();
invoker = createInvokerForEachSingleWSNode(middleNode, gfacURLString, wsComponent);
invokerList.add(invoker);
getInvoker(middleNode, invoker);
// find inputs