Class: CadenceThrift::WorkflowService::Processor
- Inherits:
-
Object
- Object
- CadenceThrift::WorkflowService::Processor
- Includes:
- Thrift::Processor
- Defined in:
- lib/gen/thrift/workflow_service.rb
Instance Method Summary collapse
- #process_CountWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
- #process_DeprecateDomain(seqid, iprot, oprot) ⇒ Object
- #process_DescribeDomain(seqid, iprot, oprot) ⇒ Object
- #process_DescribeTaskList(seqid, iprot, oprot) ⇒ Object
- #process_DescribeWorkflowExecution(seqid, iprot, oprot) ⇒ Object
- #process_GetSearchAttributes(seqid, iprot, oprot) ⇒ Object
- #process_GetWorkflowExecutionHistory(seqid, iprot, oprot) ⇒ Object
- #process_ListArchivedWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
- #process_ListClosedWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
- #process_ListDomains(seqid, iprot, oprot) ⇒ Object
- #process_ListOpenWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
- #process_ListWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
- #process_PollForActivityTask(seqid, iprot, oprot) ⇒ Object
- #process_PollForDecisionTask(seqid, iprot, oprot) ⇒ Object
- #process_QueryWorkflow(seqid, iprot, oprot) ⇒ Object
- #process_RecordActivityTaskHeartbeat(seqid, iprot, oprot) ⇒ Object
- #process_RecordActivityTaskHeartbeatByID(seqid, iprot, oprot) ⇒ Object
- #process_RegisterDomain(seqid, iprot, oprot) ⇒ Object
- #process_RequestCancelWorkflowExecution(seqid, iprot, oprot) ⇒ Object
- #process_ResetStickyTaskList(seqid, iprot, oprot) ⇒ Object
- #process_ResetWorkflowExecution(seqid, iprot, oprot) ⇒ Object
- #process_RespondActivityTaskCanceled(seqid, iprot, oprot) ⇒ Object
- #process_RespondActivityTaskCanceledByID(seqid, iprot, oprot) ⇒ Object
- #process_RespondActivityTaskCompleted(seqid, iprot, oprot) ⇒ Object
- #process_RespondActivityTaskCompletedByID(seqid, iprot, oprot) ⇒ Object
- #process_RespondActivityTaskFailed(seqid, iprot, oprot) ⇒ Object
- #process_RespondActivityTaskFailedByID(seqid, iprot, oprot) ⇒ Object
- #process_RespondDecisionTaskCompleted(seqid, iprot, oprot) ⇒ Object
- #process_RespondDecisionTaskFailed(seqid, iprot, oprot) ⇒ Object
- #process_RespondQueryTaskCompleted(seqid, iprot, oprot) ⇒ Object
- #process_ScanWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
- #process_SignalWithStartWorkflowExecution(seqid, iprot, oprot) ⇒ Object
- #process_SignalWorkflowExecution(seqid, iprot, oprot) ⇒ Object
- #process_StartWorkflowExecution(seqid, iprot, oprot) ⇒ Object
- #process_TerminateWorkflowExecution(seqid, iprot, oprot) ⇒ Object
- #process_UpdateDomain(seqid, iprot, oprot) ⇒ Object
Instance Method Details
#process_CountWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 |
# File 'lib/gen/thrift/workflow_service.rb', line 1410 def process_CountWorkflowExecutions(seqid, iprot, oprot) args = read_args(iprot, CountWorkflowExecutions_args) result = CountWorkflowExecutions_result.new() begin result.success = @handler.CountWorkflowExecutions(args.countRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'CountWorkflowExecutions', seqid) end |
#process_DeprecateDomain(seqid, iprot, oprot) ⇒ Object
853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 |
# File 'lib/gen/thrift/workflow_service.rb', line 853 def process_DeprecateDomain(seqid, iprot, oprot) args = read_args(iprot, DeprecateDomain_args) result = DeprecateDomain_result.new() begin @handler.DeprecateDomain(args.deprecateRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'DeprecateDomain', seqid) end |
#process_DescribeDomain(seqid, iprot, oprot) ⇒ Object
794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 |
# File 'lib/gen/thrift/workflow_service.rb', line 794 def process_DescribeDomain(seqid, iprot, oprot) args = read_args(iprot, DescribeDomain_args) result = DescribeDomain_result.new() begin result.success = @handler.DescribeDomain(args.describeRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'DescribeDomain', seqid) end |
#process_DescribeTaskList(seqid, iprot, oprot) ⇒ Object
1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 |
# File 'lib/gen/thrift/workflow_service.rb', line 1534 def process_DescribeTaskList(seqid, iprot, oprot) args = read_args(iprot, DescribeTaskList_args) result = DescribeTaskList_result.new() begin result.success = @handler.DescribeTaskList(args.request) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'DescribeTaskList', seqid) end |
#process_DescribeWorkflowExecution(seqid, iprot, oprot) ⇒ Object
1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 |
# File 'lib/gen/thrift/workflow_service.rb', line 1513 def process_DescribeWorkflowExecution(seqid, iprot, oprot) args = read_args(iprot, DescribeWorkflowExecution_args) result = DescribeWorkflowExecution_result.new() begin result.success = @handler.DescribeWorkflowExecution(args.describeRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'DescribeWorkflowExecution', seqid) end |
#process_GetSearchAttributes(seqid, iprot, oprot) ⇒ Object
1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 |
# File 'lib/gen/thrift/workflow_service.rb', line 1429 def process_GetSearchAttributes(seqid, iprot, oprot) args = read_args(iprot, GetSearchAttributes_args) result = GetSearchAttributes_result.new() begin result.success = @handler.GetSearchAttributes() rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'GetSearchAttributes', seqid) end |
#process_GetWorkflowExecutionHistory(seqid, iprot, oprot) ⇒ Object
899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 |
# File 'lib/gen/thrift/workflow_service.rb', line 899 def process_GetWorkflowExecutionHistory(seqid, iprot, oprot) args = read_args(iprot, GetWorkflowExecutionHistory_args) result = GetWorkflowExecutionHistory_result.new() begin result.success = @handler.GetWorkflowExecutionHistory(args.getRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'GetWorkflowExecutionHistory', seqid) end |
#process_ListArchivedWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 |
# File 'lib/gen/thrift/workflow_service.rb', line 1372 def process_ListArchivedWorkflowExecutions(seqid, iprot, oprot) args = read_args(iprot, ListArchivedWorkflowExecutions_args) result = ListArchivedWorkflowExecutions_result.new() begin result.success = @handler.ListArchivedWorkflowExecutions(args.listRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'ListArchivedWorkflowExecutions', seqid) end |
#process_ListClosedWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 |
# File 'lib/gen/thrift/workflow_service.rb', line 1334 def process_ListClosedWorkflowExecutions(seqid, iprot, oprot) args = read_args(iprot, ListClosedWorkflowExecutions_args) result = ListClosedWorkflowExecutions_result.new() begin result.success = @handler.ListClosedWorkflowExecutions(args.listRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'ListClosedWorkflowExecutions', seqid) end |
#process_ListDomains(seqid, iprot, oprot) ⇒ Object
813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 |
# File 'lib/gen/thrift/workflow_service.rb', line 813 def process_ListDomains(seqid, iprot, oprot) args = read_args(iprot, ListDomains_args) result = ListDomains_result.new() begin result.success = @handler.ListDomains(args.listRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'ListDomains', seqid) end |
#process_ListOpenWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 |
# File 'lib/gen/thrift/workflow_service.rb', line 1313 def process_ListOpenWorkflowExecutions(seqid, iprot, oprot) args = read_args(iprot, ListOpenWorkflowExecutions_args) result = ListOpenWorkflowExecutions_result.new() begin result.success = @handler.ListOpenWorkflowExecutions(args.listRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'ListOpenWorkflowExecutions', seqid) end |
#process_ListWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 |
# File 'lib/gen/thrift/workflow_service.rb', line 1353 def process_ListWorkflowExecutions(seqid, iprot, oprot) args = read_args(iprot, ListWorkflowExecutions_args) result = ListWorkflowExecutions_result.new() begin result.success = @handler.ListWorkflowExecutions(args.listRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'ListWorkflowExecutions', seqid) end |
#process_PollForActivityTask(seqid, iprot, oprot) ⇒ Object
987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 |
# File 'lib/gen/thrift/workflow_service.rb', line 987 def process_PollForActivityTask(seqid, iprot, oprot) args = read_args(iprot, PollForActivityTask_args) result = PollForActivityTask_result.new() begin result.success = @handler.PollForActivityTask(args.pollRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'PollForActivityTask', seqid) end |
#process_PollForDecisionTask(seqid, iprot, oprot) ⇒ Object
918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 |
# File 'lib/gen/thrift/workflow_service.rb', line 918 def process_PollForDecisionTask(seqid, iprot, oprot) args = read_args(iprot, PollForDecisionTask_args) result = PollForDecisionTask_result.new() begin result.success = @handler.PollForDecisionTask(args.pollRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'PollForDecisionTask', seqid) end |
#process_QueryWorkflow(seqid, iprot, oprot) ⇒ Object
1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 |
# File 'lib/gen/thrift/workflow_service.rb', line 1490 def process_QueryWorkflow(seqid, iprot, oprot) args = read_args(iprot, QueryWorkflow_args) result = QueryWorkflow_result.new() begin result.success = @handler.QueryWorkflow(args.queryRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::QueryFailedError => queryFailedError result.queryFailedError = queryFailedError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'QueryWorkflow', seqid) end |
#process_RecordActivityTaskHeartbeat(seqid, iprot, oprot) ⇒ Object
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 |
# File 'lib/gen/thrift/workflow_service.rb', line 1010 def process_RecordActivityTaskHeartbeat(seqid, iprot, oprot) args = read_args(iprot, RecordActivityTaskHeartbeat_args) result = RecordActivityTaskHeartbeat_result.new() begin result.success = @handler.RecordActivityTaskHeartbeat(args.heartbeatRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RecordActivityTaskHeartbeat', seqid) end |
#process_RecordActivityTaskHeartbeatByID(seqid, iprot, oprot) ⇒ Object
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'lib/gen/thrift/workflow_service.rb', line 1033 def process_RecordActivityTaskHeartbeatByID(seqid, iprot, oprot) args = read_args(iprot, RecordActivityTaskHeartbeatByID_args) result = RecordActivityTaskHeartbeatByID_result.new() begin result.success = @handler.RecordActivityTaskHeartbeatByID(args.heartbeatRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RecordActivityTaskHeartbeatByID', seqid) end |
#process_RegisterDomain(seqid, iprot, oprot) ⇒ Object
775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 |
# File 'lib/gen/thrift/workflow_service.rb', line 775 def process_RegisterDomain(seqid, iprot, oprot) args = read_args(iprot, RegisterDomain_args) result = RegisterDomain_result.new() begin @handler.RegisterDomain(args.registerRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::DomainAlreadyExistsError => domainExistsError result.domainExistsError = domainExistsError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RegisterDomain', seqid) end |
#process_RequestCancelWorkflowExecution(seqid, iprot, oprot) ⇒ Object
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 |
# File 'lib/gen/thrift/workflow_service.rb', line 1194 def process_RequestCancelWorkflowExecution(seqid, iprot, oprot) args = read_args(iprot, RequestCancelWorkflowExecution_args) result = RequestCancelWorkflowExecution_result.new() begin @handler.RequestCancelWorkflowExecution(args.cancelRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::CancellationAlreadyRequestedError => cancellationAlreadyRequestedError result.cancellationAlreadyRequestedError = cancellationAlreadyRequestedError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RequestCancelWorkflowExecution', seqid) end |
#process_ResetStickyTaskList(seqid, iprot, oprot) ⇒ Object
1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 |
# File 'lib/gen/thrift/workflow_service.rb', line 1467 def process_ResetStickyTaskList(seqid, iprot, oprot) args = read_args(iprot, ResetStickyTaskList_args) result = ResetStickyTaskList_result.new() begin result.success = @handler.ResetStickyTaskList(args.resetRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'ResetStickyTaskList', seqid) end |
#process_ResetWorkflowExecution(seqid, iprot, oprot) ⇒ Object
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 |
# File 'lib/gen/thrift/workflow_service.rb', line 1267 def process_ResetWorkflowExecution(seqid, iprot, oprot) args = read_args(iprot, ResetWorkflowExecution_args) result = ResetWorkflowExecution_result.new() begin result.success = @handler.ResetWorkflowExecution(args.resetRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'ResetWorkflowExecution', seqid) end |
#process_RespondActivityTaskCanceled(seqid, iprot, oprot) ⇒ Object
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 |
# File 'lib/gen/thrift/workflow_service.rb', line 1148 def process_RespondActivityTaskCanceled(seqid, iprot, oprot) args = read_args(iprot, RespondActivityTaskCanceled_args) result = RespondActivityTaskCanceled_result.new() begin @handler.RespondActivityTaskCanceled(args.canceledRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondActivityTaskCanceled', seqid) end |
#process_RespondActivityTaskCanceledByID(seqid, iprot, oprot) ⇒ Object
1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 |
# File 'lib/gen/thrift/workflow_service.rb', line 1171 def process_RespondActivityTaskCanceledByID(seqid, iprot, oprot) args = read_args(iprot, RespondActivityTaskCanceledByID_args) result = RespondActivityTaskCanceledByID_result.new() begin @handler.RespondActivityTaskCanceledByID(args.canceledRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondActivityTaskCanceledByID', seqid) end |
#process_RespondActivityTaskCompleted(seqid, iprot, oprot) ⇒ Object
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 |
# File 'lib/gen/thrift/workflow_service.rb', line 1056 def process_RespondActivityTaskCompleted(seqid, iprot, oprot) args = read_args(iprot, RespondActivityTaskCompleted_args) result = RespondActivityTaskCompleted_result.new() begin @handler.RespondActivityTaskCompleted(args.completeRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondActivityTaskCompleted', seqid) end |
#process_RespondActivityTaskCompletedByID(seqid, iprot, oprot) ⇒ Object
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 |
# File 'lib/gen/thrift/workflow_service.rb', line 1079 def process_RespondActivityTaskCompletedByID(seqid, iprot, oprot) args = read_args(iprot, RespondActivityTaskCompletedByID_args) result = RespondActivityTaskCompletedByID_result.new() begin @handler.RespondActivityTaskCompletedByID(args.completeRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondActivityTaskCompletedByID', seqid) end |
#process_RespondActivityTaskFailed(seqid, iprot, oprot) ⇒ Object
1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 |
# File 'lib/gen/thrift/workflow_service.rb', line 1102 def process_RespondActivityTaskFailed(seqid, iprot, oprot) args = read_args(iprot, RespondActivityTaskFailed_args) result = RespondActivityTaskFailed_result.new() begin @handler.RespondActivityTaskFailed(args.failRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondActivityTaskFailed', seqid) end |
#process_RespondActivityTaskFailedByID(seqid, iprot, oprot) ⇒ Object
1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 |
# File 'lib/gen/thrift/workflow_service.rb', line 1125 def process_RespondActivityTaskFailedByID(seqid, iprot, oprot) args = read_args(iprot, RespondActivityTaskFailedByID_args) result = RespondActivityTaskFailedByID_result.new() begin @handler.RespondActivityTaskFailedByID(args.failRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondActivityTaskFailedByID', seqid) end |
#process_RespondDecisionTaskCompleted(seqid, iprot, oprot) ⇒ Object
941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 |
# File 'lib/gen/thrift/workflow_service.rb', line 941 def process_RespondDecisionTaskCompleted(seqid, iprot, oprot) args = read_args(iprot, RespondDecisionTaskCompleted_args) result = RespondDecisionTaskCompleted_result.new() begin result.success = @handler.RespondDecisionTaskCompleted(args.completeRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondDecisionTaskCompleted', seqid) end |
#process_RespondDecisionTaskFailed(seqid, iprot, oprot) ⇒ Object
964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 |
# File 'lib/gen/thrift/workflow_service.rb', line 964 def process_RespondDecisionTaskFailed(seqid, iprot, oprot) args = read_args(iprot, RespondDecisionTaskFailed_args) result = RespondDecisionTaskFailed_result.new() begin @handler.RespondDecisionTaskFailed(args.failedRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondDecisionTaskFailed', seqid) end |
#process_RespondQueryTaskCompleted(seqid, iprot, oprot) ⇒ Object
1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 |
# File 'lib/gen/thrift/workflow_service.rb', line 1444 def process_RespondQueryTaskCompleted(seqid, iprot, oprot) args = read_args(iprot, RespondQueryTaskCompleted_args) result = RespondQueryTaskCompleted_result.new() begin @handler.RespondQueryTaskCompleted(args.completeRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'RespondQueryTaskCompleted', seqid) end |
#process_ScanWorkflowExecutions(seqid, iprot, oprot) ⇒ Object
1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 |
# File 'lib/gen/thrift/workflow_service.rb', line 1391 def process_ScanWorkflowExecutions(seqid, iprot, oprot) args = read_args(iprot, ScanWorkflowExecutions_args) result = ScanWorkflowExecutions_result.new() begin result.success = @handler.ScanWorkflowExecutions(args.listRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'ScanWorkflowExecutions', seqid) end |
#process_SignalWithStartWorkflowExecution(seqid, iprot, oprot) ⇒ Object
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 |
# File 'lib/gen/thrift/workflow_service.rb', line 1242 def process_SignalWithStartWorkflowExecution(seqid, iprot, oprot) args = read_args(iprot, SignalWithStartWorkflowExecution_args) result = SignalWithStartWorkflowExecution_result.new() begin result.success = @handler.SignalWithStartWorkflowExecution(args.signalWithStartRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::WorkflowExecutionAlreadyStartedError => workflowAlreadyStartedError result.workflowAlreadyStartedError = workflowAlreadyStartedError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'SignalWithStartWorkflowExecution', seqid) end |
#process_SignalWorkflowExecution(seqid, iprot, oprot) ⇒ Object
1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 |
# File 'lib/gen/thrift/workflow_service.rb', line 1219 def process_SignalWorkflowExecution(seqid, iprot, oprot) args = read_args(iprot, SignalWorkflowExecution_args) result = SignalWorkflowExecution_result.new() begin @handler.SignalWorkflowExecution(args.signalRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'SignalWorkflowExecution', seqid) end |
#process_StartWorkflowExecution(seqid, iprot, oprot) ⇒ Object
874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 |
# File 'lib/gen/thrift/workflow_service.rb', line 874 def process_StartWorkflowExecution(seqid, iprot, oprot) args = read_args(iprot, StartWorkflowExecution_args) result = StartWorkflowExecution_result.new() begin result.success = @handler.StartWorkflowExecution(args.startRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::WorkflowExecutionAlreadyStartedError => sessionAlreadyExistError result.sessionAlreadyExistError = sessionAlreadyExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'StartWorkflowExecution', seqid) end |
#process_TerminateWorkflowExecution(seqid, iprot, oprot) ⇒ Object
1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 |
# File 'lib/gen/thrift/workflow_service.rb', line 1290 def process_TerminateWorkflowExecution(seqid, iprot, oprot) args = read_args(iprot, TerminateWorkflowExecution_args) result = TerminateWorkflowExecution_result.new() begin @handler.TerminateWorkflowExecution(args.terminateRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::LimitExceededError => limitExceededError result.limitExceededError = limitExceededError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'TerminateWorkflowExecution', seqid) end |
#process_UpdateDomain(seqid, iprot, oprot) ⇒ Object
832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 |
# File 'lib/gen/thrift/workflow_service.rb', line 832 def process_UpdateDomain(seqid, iprot, oprot) args = read_args(iprot, UpdateDomain_args) result = UpdateDomain_result.new() begin result.success = @handler.UpdateDomain(args.updateRequest) rescue ::CadenceThrift::BadRequestError => badRequestError result.badRequestError = badRequestError rescue ::CadenceThrift::InternalServiceError => internalServiceError result.internalServiceError = internalServiceError rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError result.entityNotExistError = entityNotExistError rescue ::CadenceThrift::ServiceBusyError => serviceBusyError result.serviceBusyError = serviceBusyError rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError result.domainNotActiveError = domainNotActiveError rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError result.clientVersionNotSupportedError = clientVersionNotSupportedError end write_result(result, oprot, 'UpdateDomain', seqid) end |