for(int i =0; i< this.load; ++i){
final int val = i;
new Thread() {
@Override
public synchronized void run() {
XBaya xBaya = new XBaya(args);
XBayaTextField topic = new XBayaTextField();
topic.setText("topic"+val);
//Iterator<WSComponentPort> iterator = xBaya.getEngine().getWorkflow().getInputs().iterator();
List<XBayaTextField> parameterTextFields = new LinkedList<XBayaTextField>();
xBaya.getEngine().getWorkflow().getWorkflowWSDL();
int count = 1;
for(int j = 0; j<2; ++j) {
XBayaTextField txt = new XBayaTextField();
txt.setText(""+count);
parameterTextFields.add(txt);
}
JythonRunnerWindow window = new JythonRunnerWindow(xBaya.getEngine(), topic, parameterTextFields);
window.execute();
}
}.start();
}