All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ee.telekom.workflow.api.AutoRecovery Maven / Gradle / Ivy

Go to download

Telekom-workflow-engine API interface (DSL) for writing your workflow definitions and plugins.

The newest version!
package ee.telekom.workflow.api;

/**
 * Enum indicating if work item is automatically retried on recovery.
 */
public enum AutoRecovery {
    ENABLED, DISABLED;

    public static AutoRecovery of(boolean autoRecovery){
        return autoRecovery ? ENABLED : DISABLED;
    }

    public static AutoRecovery getDefault(){
        return ENABLED;
    }

    public boolean asBoolean(){
        return this == ENABLED;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy