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

com.uber.cadence.DecisionTaskFailedCause Maven / Gradle / Ivy

There is a newer version: 3.12.5
Show newest version
/**
 * Autogenerated by Thrift Compiler (0.9.3)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package com.uber.cadence;


import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;

public enum DecisionTaskFailedCause implements org.apache.thrift.TEnum {
  UNHANDLED_DECISION(0),
  BAD_SCHEDULE_ACTIVITY_ATTRIBUTES(1),
  BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES(2),
  BAD_START_TIMER_ATTRIBUTES(3),
  BAD_CANCEL_TIMER_ATTRIBUTES(4),
  BAD_RECORD_MARKER_ATTRIBUTES(5),
  BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES(6),
  BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES(7),
  BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES(8),
  BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES(9),
  BAD_CONTINUE_AS_NEW_ATTRIBUTES(10),
  START_TIMER_DUPLICATE_ID(11),
  RESET_STICKY_TASKLIST(12),
  WORKFLOW_WORKER_UNHANDLED_FAILURE(13),
  BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES(14),
  BAD_START_CHILD_EXECUTION_ATTRIBUTES(15),
  FORCE_CLOSE_DECISION(16),
  FAILOVER_CLOSE_DECISION(17),
  BAD_SIGNAL_INPUT_SIZE(18),
  RESET_WORKFLOW(19),
  BAD_BINARY(20);

  private final int value;

  private DecisionTaskFailedCause(int value) {
    this.value = value;
  }

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  public static DecisionTaskFailedCause findByValue(int value) { 
    switch (value) {
      case 0:
        return UNHANDLED_DECISION;
      case 1:
        return BAD_SCHEDULE_ACTIVITY_ATTRIBUTES;
      case 2:
        return BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES;
      case 3:
        return BAD_START_TIMER_ATTRIBUTES;
      case 4:
        return BAD_CANCEL_TIMER_ATTRIBUTES;
      case 5:
        return BAD_RECORD_MARKER_ATTRIBUTES;
      case 6:
        return BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES;
      case 7:
        return BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES;
      case 8:
        return BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES;
      case 9:
        return BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES;
      case 10:
        return BAD_CONTINUE_AS_NEW_ATTRIBUTES;
      case 11:
        return START_TIMER_DUPLICATE_ID;
      case 12:
        return RESET_STICKY_TASKLIST;
      case 13:
        return WORKFLOW_WORKER_UNHANDLED_FAILURE;
      case 14:
        return BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES;
      case 15:
        return BAD_START_CHILD_EXECUTION_ATTRIBUTES;
      case 16:
        return FORCE_CLOSE_DECISION;
      case 17:
        return FAILOVER_CLOSE_DECISION;
      case 18:
        return BAD_SIGNAL_INPUT_SIZE;
      case 19:
        return RESET_WORKFLOW;
      case 20:
        return BAD_BINARY;
      default:
        return null;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy