Stop retrying Workflow using java
Hi,
I have a custom workflow which I don't want to be retried if fails.
if (schemaErrors.size() > 0) {
// session.terminateWorkflow(item.getWorkflow());
String message = LOG.log(Messages.EXCEPTION_RUNNING_UPGRADE_WORKFLOW);
throw new WorkflowException(message);
}
Is there a way to stop retrying once I throw a workflow exception? I have tried with terminateWorkflow but it doesn't seem to work.