@@ -591,9 +591,6 @@ private GetWorkflowExecutionHistoryResponse getWorkflowExecutionHistory(
591591 if (result .isSetServiceBusyError ()) {
592592 throw result .getServiceBusyError ();
593593 }
594- if (result .isSetEntityNotExistError ()) {
595- throw result .getEntityNotExistError ();
596- }
597594 throw new TException ("GetWorkflowExecutionHistory failed with unknown error:" + result );
598595 } finally {
599596 if (response != null ) {
@@ -704,6 +701,9 @@ private RespondDecisionTaskCompletedResponse respondDecisionTaskCompleted(
704701 if (result .isSetEntityNotExistError ()) {
705702 throw result .getEntityNotExistError ();
706703 }
704+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
705+ throw result .getWorkflowExecutionAlreadyCompletedError ();
706+ }
707707 if (result .isSetClientVersionNotSupportedError ()) {
708708 throw result .getClientVersionNotSupportedError ();
709709 }
@@ -742,6 +742,9 @@ private void respondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRe
742742 if (result .isSetEntityNotExistError ()) {
743743 throw result .getEntityNotExistError ();
744744 }
745+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
746+ throw result .getWorkflowExecutionAlreadyCompletedError ();
747+ }
745748 if (result .isSetServiceBusyError ()) {
746749 throw result .getServiceBusyError ();
747750 }
@@ -751,9 +754,6 @@ private void respondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRe
751754 if (result .isSetLimitExceededError ()) {
752755 throw result .getLimitExceededError ();
753756 }
754- if (result .isSetEntityNotExistError ()) {
755- throw result .getEntityNotExistError ();
756- }
757757 if (result .isSetClientVersionNotSupportedError ()) {
758758 throw result .getClientVersionNotSupportedError ();
759759 }
@@ -840,6 +840,9 @@ private RecordActivityTaskHeartbeatResponse recordActivityTaskHeartbeat(
840840 if (result .isSetEntityNotExistError ()) {
841841 throw result .getEntityNotExistError ();
842842 }
843+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
844+ throw result .getWorkflowExecutionAlreadyCompletedError ();
845+ }
843846 if (result .isSetServiceBusyError ()) {
844847 throw result .getServiceBusyError ();
845848 }
@@ -890,6 +893,9 @@ private RecordActivityTaskHeartbeatResponse recordActivityTaskHeartbeatByID(
890893 if (result .isSetEntityNotExistError ()) {
891894 throw result .getEntityNotExistError ();
892895 }
896+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
897+ throw result .getWorkflowExecutionAlreadyCompletedError ();
898+ }
893899 if (result .isSetServiceBusyError ()) {
894900 throw result .getServiceBusyError ();
895901 }
@@ -937,6 +943,9 @@ private void respondActivityTaskCompleted(RespondActivityTaskCompletedRequest co
937943 if (result .isSetEntityNotExistError ()) {
938944 throw result .getEntityNotExistError ();
939945 }
946+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
947+ throw result .getWorkflowExecutionAlreadyCompletedError ();
948+ }
940949 if (result .isSetServiceBusyError ()) {
941950 throw result .getServiceBusyError ();
942951 }
@@ -985,6 +994,9 @@ private void respondActivityTaskCompletedByID(
985994 if (result .isSetEntityNotExistError ()) {
986995 throw result .getEntityNotExistError ();
987996 }
997+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
998+ throw result .getWorkflowExecutionAlreadyCompletedError ();
999+ }
9881000 if (result .isSetServiceBusyError ()) {
9891001 throw result .getServiceBusyError ();
9901002 }
@@ -1032,6 +1044,9 @@ private void respondActivityTaskFailed(RespondActivityTaskFailedRequest failRequ
10321044 if (result .isSetEntityNotExistError ()) {
10331045 throw result .getEntityNotExistError ();
10341046 }
1047+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
1048+ throw result .getWorkflowExecutionAlreadyCompletedError ();
1049+ }
10351050 if (result .isSetServiceBusyError ()) {
10361051 throw result .getServiceBusyError ();
10371052 }
@@ -1080,6 +1095,9 @@ private void respondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest
10801095 if (result .isSetEntityNotExistError ()) {
10811096 throw result .getEntityNotExistError ();
10821097 }
1098+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
1099+ throw result .getWorkflowExecutionAlreadyCompletedError ();
1100+ }
10831101 if (result .isSetServiceBusyError ()) {
10841102 throw result .getServiceBusyError ();
10851103 }
@@ -1127,6 +1145,9 @@ private void respondActivityTaskCanceled(RespondActivityTaskCanceledRequest canc
11271145 if (result .isSetEntityNotExistError ()) {
11281146 throw result .getEntityNotExistError ();
11291147 }
1148+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
1149+ throw result .getWorkflowExecutionAlreadyCompletedError ();
1150+ }
11301151 if (result .isSetServiceBusyError ()) {
11311152 throw result .getServiceBusyError ();
11321153 }
@@ -1175,6 +1196,9 @@ private void respondActivityTaskCanceledByID(
11751196 if (result .isSetEntityNotExistError ()) {
11761197 throw result .getEntityNotExistError ();
11771198 }
1199+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
1200+ throw result .getWorkflowExecutionAlreadyCompletedError ();
1201+ }
11781202 if (result .isSetServiceBusyError ()) {
11791203 throw result .getServiceBusyError ();
11801204 }
@@ -1224,6 +1248,9 @@ private void requestCancelWorkflowExecution(RequestCancelWorkflowExecutionReques
12241248 if (result .isSetEntityNotExistError ()) {
12251249 throw result .getEntityNotExistError ();
12261250 }
1251+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
1252+ throw result .getWorkflowExecutionAlreadyCompletedError ();
1253+ }
12271254 if (result .isSetCancellationAlreadyRequestedError ()) {
12281255 throw result .getCancellationAlreadyRequestedError ();
12291256 }
@@ -1273,6 +1300,9 @@ private void signalWorkflowExecution(SignalWorkflowExecutionRequest signalReques
12731300 if (result .isSetEntityNotExistError ()) {
12741301 throw result .getEntityNotExistError ();
12751302 }
1303+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
1304+ throw result .getWorkflowExecutionAlreadyCompletedError ();
1305+ }
12761306 if (result .isSetServiceBusyError ()) {
12771307 throw result .getServiceBusyError ();
12781308 }
@@ -1421,6 +1451,9 @@ private void terminateWorkflowExecution(TerminateWorkflowExecutionRequest termin
14211451 if (result .isSetEntityNotExistError ()) {
14221452 throw result .getEntityNotExistError ();
14231453 }
1454+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
1455+ throw result .getWorkflowExecutionAlreadyCompletedError ();
1456+ }
14241457 if (result .isSetServiceBusyError ()) {
14251458 throw result .getServiceBusyError ();
14261459 }
@@ -1847,6 +1880,9 @@ private ResetStickyTaskListResponse resetStickyTaskList(ResetStickyTaskListReque
18471880 if (result .isSetEntityNotExistError ()) {
18481881 throw result .getEntityNotExistError ();
18491882 }
1883+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
1884+ throw result .getWorkflowExecutionAlreadyCompletedError ();
1885+ }
18501886 if (result .isSetServiceBusyError ()) {
18511887 throw result .getServiceBusyError ();
18521888 }
@@ -2332,6 +2368,10 @@ private void signalWorkflowExecution(
23322368 resultHandler .onError (result .getEntityNotExistError ());
23332369 return ;
23342370 }
2371+ if (result .isSetWorkflowExecutionAlreadyCompletedError ()) {
2372+ resultHandler .onError (result .getWorkflowExecutionAlreadyCompletedError ());
2373+ return ;
2374+ }
23352375 if (result .isSetServiceBusyError ()) {
23362376 resultHandler .onError (result .getServiceBusyError ());
23372377 return ;
0 commit comments