AuditEntryState.java

package com.tradecloud.domain.autoemail;

/*
Processing - AE is created and in queue in the outbox
Processing Failed - AE is not successfully created (eg no e-mail address associated with the group name)
Processing Re-Requested - user action to retrigger a failed AE
e-mailed - successfully sent
Failed - AE successfully created but delivery failed
e-mail Re-Requested - user action to resend a previously failed e-mail
 */
public enum AuditEntryState {
    PROCESSING,
    REPORT_GENERATION_FAILED,
    EMAIL_GENERATION_FAILED, //eg no e-mail address associated with the group name
    EMAILED,
    EMAILING_FAILED,
    RE_REQUESTED;

    @Override
    public String toString() {
        return String.format("%s.%s", this.getClass().getSimpleName(), this.name());
    }
}