@@ -64,46 +64,57 @@ interface TestWorkflowMutableState {
64
64
StartWorkflowExecutionRequest getStartRequest ();
65
65
66
66
void startDecisionTask (PollForDecisionTaskResponse task , PollForDecisionTaskRequest pollRequest )
67
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
67
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
68
+ BadRequestError ;
68
69
69
70
void completeDecisionTask (int historySize , RespondDecisionTaskCompletedRequest request )
70
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
71
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
72
+ BadRequestError ;
71
73
72
74
void completeSignalExternalWorkflowExecution (String signalId , String runId )
73
- throws EntityNotExistsError , InternalServiceError , BadRequestError ;
75
+ throws EntityNotExistsError , InternalServiceError , WorkflowExecutionAlreadyCompletedError ,
76
+ BadRequestError ;
74
77
75
78
void failSignalExternalWorkflowExecution (
76
79
String signalId , SignalExternalWorkflowExecutionFailedCause cause )
77
- throws EntityNotExistsError , InternalServiceError , BadRequestError ;
80
+ throws EntityNotExistsError , InternalServiceError , WorkflowExecutionAlreadyCompletedError ,
81
+ BadRequestError ;
78
82
79
83
void failDecisionTask (RespondDecisionTaskFailedRequest request )
80
84
throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
81
85
BadRequestError ;
82
86
83
87
void childWorkflowStarted (ChildWorkflowExecutionStartedEventAttributes a )
84
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
88
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
89
+ BadRequestError ;
85
90
86
91
void childWorkflowFailed (String workflowId , ChildWorkflowExecutionFailedEventAttributes a )
87
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
92
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
93
+ BadRequestError ;
88
94
89
95
void childWorkflowTimedOut (String activityId , ChildWorkflowExecutionTimedOutEventAttributes a )
90
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
96
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
97
+ BadRequestError ;
91
98
92
99
void failStartChildWorkflow (String workflowId , StartChildWorkflowExecutionFailedEventAttributes a )
93
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
100
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
101
+ BadRequestError ;
94
102
95
103
void childWorkflowCompleted (String workflowId , ChildWorkflowExecutionCompletedEventAttributes a )
96
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
104
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
105
+ BadRequestError ;
97
106
98
107
void childWorkflowCanceled (String workflowId , ChildWorkflowExecutionCanceledEventAttributes a )
99
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
108
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
109
+ BadRequestError ;
100
110
101
111
void startWorkflow (
102
112
boolean continuedAsNew , Optional <SignalWorkflowExecutionRequest > signalWithStartSignal )
103
113
throws InternalServiceError , BadRequestError ;
104
114
105
115
void startActivityTask (PollForActivityTaskResponse task , PollForActivityTaskRequest pollRequest )
106
- throws InternalServiceError , EntityNotExistsError , BadRequestError ;
116
+ throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
117
+ BadRequestError ;
107
118
108
119
void completeActivityTask (String activityId , RespondActivityTaskCompletedRequest request )
109
120
throws InternalServiceError , EntityNotExistsError , WorkflowExecutionAlreadyCompletedError ,
0 commit comments