else if (action.getStatus() == WorkflowActionBean.Status.DONE
|| action.getStatus() == WorkflowActionBean.Status.END_MANUAL) {
if (useXCommand) {
queueCallable(new ActionEndXCommand(action.getId(), action.getType()));
} else {
queueCallable(new ActionEndCommand(action.getId(), action.getType()));
}
}
else if (action.getStatus() == WorkflowActionBean.Status.END_RETRY) {
Date nextRunTime = action.getPendingAge();
if (useXCommand) {
queueCallable(new ActionEndXCommand(action.getId(), action.getType()), nextRunTime.getTime()
- System.currentTimeMillis());
} else {
queueCallable(new ActionEndCommand(action.getId(), action.getType()), nextRunTime.getTime()
- System.currentTimeMillis());
}
}
else if (action.getStatus() == WorkflowActionBean.Status.OK