.getConfiguration();
String newTopic = monitorConfiguration.getTopic() + "-diff";
monitorConfiguration.setTopic(newTopic);
// Invoke the workflow without showing the dialog.
GPELInvoker invoker = new GPELInvoker(this.engine);
try {
WorkflowClient.createScript(diffWorkflow);
} catch (GraphException e) {
this.engine.getErrorWindow().error(e); // TODO
return;
}
// Create a GUI without depending on the graph.
// Set the default as an input.
List<WSComponentPort> inputs;
try {
inputs = diffWorkflow.getInputs();
} catch (ComponentException e) {
// This should not happen when we create WSDL here, but if we use
// precompiled workflow, it might happen.
this.engine.getErrorWindow().error(
ErrorMessages.WORKFLOW_WSDL_ERROR, e);
return;
}
for (WSComponentPort input : inputs) {
String defaultValue = input.getDefaultValue();
input.setValue(defaultValue);
}
invoker.invoke(diffWorkflow, inputs, true);
// Change the ID of current display so that we can keep monitoring.
URI instanceID = diffWorkflow.getGPELInstanceID();
workflow.setGPELInstanceID(instanceID);
}