try {
this.getConfig().getConfiguration().getAiravataAPI().getProvenanceManager().setWorkflowInstanceStatus(
this.config.getTopic(), this.config.getTopic(), State.FINISHED);
} catch (Exception e) {
throw new WorkflowException(e);
}
// System.out.println(this.config.getConfiguration().getJcrComponentRegistry().getRegistry().getWorkflowStatus(this.topic));
}
} else {
if (this.config.isActOnProvenance()) {
try {
this.getConfig().getConfiguration().getAiravataAPI().getProvenanceManager().
setWorkflowInstanceStatus(this.config.getTopic(),this.config.getTopic(), State.FAILED);
} catch (AiravataAPIInvocationException e) {
throw new WorkflowException(e);
}
}
}
this.config.getNotifier().workflowTerminated();
UUID uuid = UUID.randomUUID();