}
private void runInThread(final Workflow workflow,
final List<WSComponentPort> inputs, final boolean redeploy) {
WorkflowClient client = this.engine.getWorkflowClient();
try {
client.deploy(workflow, redeploy);
} catch (WorkflowEngineException e) {
if (this.canceled) {
logger.caught(e);
} else {
this.engine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
this.invokingDialog.hide();
}
return;
} catch (RuntimeException e) {
if (this.canceled) {
logger.caught(e);
} else {
this.engine.getErrorWindow().error(
ErrorMessages.UNEXPECTED_ERROR, e);
this.invokingDialog.hide();
}
return;
} catch (Error e) {
if (this.canceled) {
logger.caught(e);
} else {
this.engine.getErrorWindow().error(
ErrorMessages.UNEXPECTED_ERROR, e);
this.invokingDialog.hide();
}
return;
}
MonitorConfiguration monitorConfiguration = this.engine.getMonitor()
.getConfiguration();
XBayaConfiguration xbayaConfiguration = this.engine.getConfiguration();
WsdlDefinitions wsdl;
try {
GcInstance instance = client.instantiate(workflow,
xbayaConfiguration.getDSCURL(), monitorConfiguration
.getTopic());
wsdl = client.start(instance);
} catch (WorkflowEngineException e) {
if (this.canceled) {
logger.caught(e);
} else {
this.engine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);