// may not find the process.
if (event instanceof WfStateAuditEvent
&& event.eventType().equals (WfAuditEvent.PROCESS_STATE_CHANGED)
&& (((WfStateAuditEvent)event).newState()
.equals (RunningState.RUNNING.toString ()))) {
throw new RedeliveryRequiredException
("Process not found (yet) for " + event);
}
// Else if we cannot lookup the process, well then this event
// is no good.
logger.warn (event + " discarded, process no longer available.");