com.semarchy.mdm.runtime.model.logical
Enum OnErrorBehavior

java.lang.Object
  extended by java.lang.Enum<OnErrorBehavior>
      extended by com.semarchy.mdm.runtime.model.logical.OnErrorBehavior
All Implemented Interfaces:
Serializable, Comparable<OnErrorBehavior>

public enum OnErrorBehavior
extends Enum<OnErrorBehavior>

OnErrorBehavior enumeration defining the Engine's Behavior on errors for Enrichers and Validators.

Possible values are :

  • SKIP_RECORDS
  • SKIP_TASK
  • FAIL_JOB

  • Enum Constant Summary
    FAIL_JOB
              Stop the current Job (Default).
    SKIP_RECORDS
              Skip the records for which the enricher/validation fails (this might also skip non problematic records if we support batching at some point see MDM-1176).
    SKIP_TASK
              Skip the enricher/validator for all records in the batch.
     
    Method Summary
    static OnErrorBehavior valueOf(String name)
              Returns the enum constant of this type with the specified name.
    static OnErrorBehavior[] values()
              Returns an array containing the constants of this enum type, in the order they are declared.
     
    Methods inherited from class java.lang.Enum
    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
     
    Methods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, wait
     

    Enum Constant Detail

    SKIP_RECORDS

    public static final OnErrorBehavior SKIP_RECORDS
    Skip the records for which the enricher/validation fails (this might also skip non problematic records if we support batching at some point see MDM-1176).


    SKIP_TASK

    public static final OnErrorBehavior SKIP_TASK
    Skip the enricher/validator for all records in the batch.


    FAIL_JOB

    public static final OnErrorBehavior FAIL_JOB
    Stop the current Job (Default).

    Method Detail

    values

    public static OnErrorBehavior[] values()
    Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
    for (OnErrorBehavior c : OnErrorBehavior.values())
        System.out.println(c);
    

    Returns:
    an array containing the constants of this enum type, in the order they are declared

    valueOf

    public static OnErrorBehavior valueOf(String name)
    Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

    Parameters:
    name - the name of the enum constant to be returned.
    Returns:
    the enum constant with the specified name
    Throws:
    IllegalArgumentException - if this enum type has no constant with the specified name
    NullPointerException - if the argument is null


    Copyright © 2015. All Rights Reserved.