go.uber.org/cadence@v1.2.9/internal/compatibility/testdata/enum.go (about)

     1  // Copyright (c) 2021 Uber Technologies Inc.
     2  //
     3  // Permission is hereby granted, free of charge, to any person obtaining a copy
     4  // of this software and associated documentation files (the "Software"), to deal
     5  // in the Software without restriction, including without limitation the rights
     6  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7  // copies of the Software, and to permit persons to whom the Software is
     8  // furnished to do so, subject to the following conditions:
     9  //
    10  // The above copyright notice and this permission notice shall be included in all
    11  // copies or substantial portions of the Software.
    12  //
    13  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    14  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    15  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    16  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    17  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    18  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    19  // SOFTWARE.
    20  
    21  package testdata
    22  
    23  import apiv1 "github.com/uber/cadence-idl/go/proto/api/v1"
    24  
    25  var (
    26  	ArchivalStatus                             = apiv1.ArchivalStatus_ARCHIVAL_STATUS_ENABLED
    27  	CancelExternalWorkflowExecutionFailedCause = apiv1.CancelExternalWorkflowExecutionFailedCause_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION
    28  	ChildWorkflowExecutionFailedCause          = apiv1.ChildWorkflowExecutionFailedCause_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING
    29  	ContinueAsNewInitiator                     = apiv1.ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_RETRY_POLICY
    30  	DecisionTaskFailedCause                    = apiv1.DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES
    31  	DecisionTaskTimedOutCause                  = apiv1.DecisionTaskTimedOutCause_DECISION_TASK_TIMED_OUT_CAUSE_RESET
    32  	DomainStatus                               = apiv1.DomainStatus_DOMAIN_STATUS_REGISTERED
    33  	EncodingType                               = apiv1.EncodingType_ENCODING_TYPE_JSON
    34  	HistoryEventFilterType                     = apiv1.EventFilterType_EVENT_FILTER_TYPE_CLOSE_EVENT
    35  	IndexedValueType                           = apiv1.IndexedValueType_INDEXED_VALUE_TYPE_INT
    36  	ParentClosePolicy                          = apiv1.ParentClosePolicy_PARENT_CLOSE_POLICY_TERMINATE
    37  	PendingActivityState                       = apiv1.PendingActivityState_PENDING_ACTIVITY_STATE_CANCEL_REQUESTED
    38  	PendingDecisionState                       = apiv1.PendingDecisionState_PENDING_DECISION_STATE_STARTED
    39  	QueryConsistencyLevel                      = apiv1.QueryConsistencyLevel_QUERY_CONSISTENCY_LEVEL_STRONG
    40  	QueryRejectCondition                       = apiv1.QueryRejectCondition_QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY
    41  	QueryResultType                            = apiv1.QueryResultType_QUERY_RESULT_TYPE_FAILED
    42  	SignalExternalWorkflowExecutionFailedCause = apiv1.SignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION
    43  	TaskListKind                               = apiv1.TaskListKind_TASK_LIST_KIND_STICKY
    44  	TaskListType                               = apiv1.TaskListType_TASK_LIST_TYPE_ACTIVITY
    45  	TimeoutType                                = apiv1.TimeoutType_TIMEOUT_TYPE_SCHEDULE_TO_START
    46  	WorkflowExecutionCloseStatus               = apiv1.WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW
    47  	WorkflowIDReusePolicy                      = apiv1.WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING
    48  )