Package com.uber.cadence
Class WorkflowService.Client
- java.lang.Object
-
- org.apache.thrift.TServiceClient
-
- com.uber.cadence.WorkflowService.Client
-
- All Implemented Interfaces:
WorkflowService.Iface
- Enclosing class:
- WorkflowService
public static class WorkflowService.Client extends org.apache.thrift.TServiceClient implements WorkflowService.Iface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkflowService.Client.Factory
-
Method Summary
-
-
-
Method Detail
-
RegisterDomain
public void RegisterDomain(RegisterDomainRequest registerRequest) throws BadRequestError, DomainAlreadyExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level entity within Cadence, used as a container for all resources like workflow executions, tasklists, etc. Domain acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one domain.- Specified by:
RegisterDomain
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
DomainAlreadyExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_RegisterDomain
public void send_RegisterDomain(RegisterDomainRequest registerRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RegisterDomain
public void recv_RegisterDomain() throws BadRequestError, DomainAlreadyExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
DomainAlreadyExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
DescribeDomain
public DescribeDomainResponse DescribeDomain(DescribeDomainRequest describeRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
DescribeDomain returns the information and configuration for a registered domain.- Specified by:
DescribeDomain
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_DescribeDomain
public void send_DescribeDomain(DescribeDomainRequest describeRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_DescribeDomain
public DescribeDomainResponse recv_DescribeDomain() throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
ListDomains
public ListDomainsResponse ListDomains(ListDomainsRequest listRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
ListDomains returns the information and configuration for all domains.- Specified by:
ListDomains
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_ListDomains
public void send_ListDomains(ListDomainsRequest listRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ListDomains
public ListDomainsResponse recv_ListDomains() throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
UpdateDomain
public UpdateDomainResponse UpdateDomain(UpdateDomainRequest updateRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
UpdateDomain is used to update the information and configuration for a registered domain.- Specified by:
UpdateDomain
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_UpdateDomain
public void send_UpdateDomain(UpdateDomainRequest updateRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_UpdateDomain
public UpdateDomainResponse recv_UpdateDomain() throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
DeprecateDomain
public void DeprecateDomain(DeprecateDomainRequest deprecateRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated it cannot be used to start new workflow executions. Existing workflow executions will continue to run on deprecated domains.- Specified by:
DeprecateDomain
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_DeprecateDomain
public void send_DeprecateDomain(DeprecateDomainRequest deprecateRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_DeprecateDomain
public void recv_DeprecateDomain() throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
StartWorkflowExecution
public StartWorkflowExecutionResponse StartWorkflowExecution(StartWorkflowExecutionRequest startRequest) throws BadRequestError, WorkflowExecutionAlreadyStartedError, ServiceBusyError, DomainNotActiveError, LimitExceededError, EntityNotExistsError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
StartWorkflowExecution starts a new long running workflow instance. It will create the instance with 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already exists with same workflowId.- Specified by:
StartWorkflowExecution
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
WorkflowExecutionAlreadyStartedError
ServiceBusyError
DomainNotActiveError
LimitExceededError
EntityNotExistsError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_StartWorkflowExecution
public void send_StartWorkflowExecution(StartWorkflowExecutionRequest startRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_StartWorkflowExecution
public StartWorkflowExecutionResponse recv_StartWorkflowExecution() throws BadRequestError, WorkflowExecutionAlreadyStartedError, ServiceBusyError, DomainNotActiveError, LimitExceededError, EntityNotExistsError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
WorkflowExecutionAlreadyStartedError
ServiceBusyError
DomainNotActiveError
LimitExceededError
EntityNotExistsError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
GetWorkflowExecutionHistory
public GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
Returns the history of specified workflow execution. It fails with 'EntityNotExistError' if speficied workflow execution in unknown to the service.- Specified by:
GetWorkflowExecutionHistory
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_GetWorkflowExecutionHistory
public void send_GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_GetWorkflowExecutionHistory
public GetWorkflowExecutionHistoryResponse recv_GetWorkflowExecutionHistory() throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
PollForDecisionTask
public PollForDecisionTaskResponse PollForDecisionTask(PollForDecisionTaskRequest pollRequest) throws BadRequestError, ServiceBusyError, LimitExceededError, EntityNotExistsError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList. A DecisionTask is dispatched to callers for active workflow executions, with pending decisions. Application is then expected to call 'RespondDecisionTaskCompleted' API when it is done processing the DecisionTask. It will also create a 'DecisionTaskStarted' event in the history for that session before handing off DecisionTask to application worker.- Specified by:
PollForDecisionTask
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
ServiceBusyError
LimitExceededError
EntityNotExistsError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_PollForDecisionTask
public void send_PollForDecisionTask(PollForDecisionTaskRequest pollRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_PollForDecisionTask
public PollForDecisionTaskResponse recv_PollForDecisionTask() throws BadRequestError, ServiceBusyError, LimitExceededError, EntityNotExistsError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
ServiceBusyError
LimitExceededError
EntityNotExistsError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
RespondDecisionTaskCompleted
public RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call for completing the DecisionTask. The response could contain a new decision task if there is one or if the request asking for one.- Specified by:
RespondDecisionTaskCompleted
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RespondDecisionTaskCompleted
public void send_RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondDecisionTaskCompleted
public RespondDecisionTaskCompletedResponse recv_RespondDecisionTaskCompleted() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RespondDecisionTaskFailed
public void RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondDecisionTaskFailed is called by application worker to indicate failure. This results in DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to either clear sticky tasklist or report any panics during DecisionTask processing. Cadence will only append first DecisionTaskFailed event to the history of workflow execution for consecutive failures.- Specified by:
RespondDecisionTaskFailed
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RespondDecisionTaskFailed
public void send_RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondDecisionTaskFailed
public void recv_RespondDecisionTaskFailed() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
PollForActivityTask
public PollForActivityTaskResponse PollForActivityTask(PollForActivityTaskRequest pollRequest) throws BadRequestError, ServiceBusyError, LimitExceededError, EntityNotExistsError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
PollForActivityTask is called by application worker to process ActivityTask from a specific taskList. ActivityTask is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done processing the task. Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to prevent the task from getting timed out. An event 'ActivityTaskStarted' event is also written to workflow execution history before the ActivityTask is dispatched to application worker.- Specified by:
PollForActivityTask
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
ServiceBusyError
LimitExceededError
EntityNotExistsError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_PollForActivityTask
public void send_PollForActivityTask(PollForActivityTaskRequest pollRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_PollForActivityTask
public PollForActivityTaskResponse recv_PollForActivityTask() throws BadRequestError, ServiceBusyError, LimitExceededError, EntityNotExistsError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
ServiceBusyError
LimitExceededError
EntityNotExistsError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
RecordActivityTaskHeartbeat
public RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of PollForActivityTask API call for heartbeating.- Specified by:
RecordActivityTaskHeartbeat
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RecordActivityTaskHeartbeat
public void send_RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RecordActivityTaskHeartbeat
public RecordActivityTaskHeartbeatResponse recv_RecordActivityTaskHeartbeat() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RecordActivityTaskHeartbeatByID
public RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask. If worker fails to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeatByID' will fail with 'EntityNotExistsError' in such situations. Instead of using 'taskToken' like in RecordActivityTaskHeartbeat, use Domain, WorkflowID and ActivityID- Specified by:
RecordActivityTaskHeartbeatByID
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RecordActivityTaskHeartbeatByID
public void send_RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RecordActivityTaskHeartbeatByID
public RecordActivityTaskHeartbeatResponse recv_RecordActivityTaskHeartbeatByID() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RespondActivityTaskCompleted
public void RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid anymore due to activity timeout.- Specified by:
RespondActivityTaskCompleted
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RespondActivityTaskCompleted
public void send_RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondActivityTaskCompleted
public void recv_RespondActivityTaskCompleted() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RespondActivityTaskCompletedByID
public void RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask. It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask created for the workflow so new decisions could be made. Similar to RespondActivityTaskCompleted but use Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' if the these IDs are not valid anymore due to activity timeout.- Specified by:
RespondActivityTaskCompletedByID
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RespondActivityTaskCompletedByID
public void send_RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondActivityTaskCompletedByID
public void recv_RespondActivityTaskCompletedByID() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RespondActivityTaskFailed
public void RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid anymore due to activity timeout.- Specified by:
RespondActivityTaskFailed
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RespondActivityTaskFailed
public void send_RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondActivityTaskFailed
public void recv_RespondActivityTaskFailed() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RespondActivityTaskFailedByID
public void RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask. It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskFailed but use Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' if the these IDs are not valid anymore due to activity timeout.- Specified by:
RespondActivityTaskFailedByID
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RespondActivityTaskFailedByID
public void send_RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondActivityTaskFailedByID
public void recv_RespondActivityTaskFailedByID() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RespondActivityTaskCanceled
public void RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid anymore due to activity timeout.- Specified by:
RespondActivityTaskCanceled
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RespondActivityTaskCanceled
public void send_RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondActivityTaskCanceled
public void recv_RespondActivityTaskCanceled() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RespondActivityTaskCanceledByID
public void RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest) throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask. It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskCanceled but use Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' if the these IDs are not valid anymore due to activity timeout.- Specified by:
RespondActivityTaskCanceledByID
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RespondActivityTaskCanceledByID
public void send_RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondActivityTaskCanceledByID
public void recv_RespondActivityTaskCanceledByID() throws BadRequestError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
RequestCancelWorkflowExecution
public void RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest) throws BadRequestError, EntityNotExistsError, CancellationAlreadyRequestedError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance. It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new DecisionTask created for the workflow instance so new decisions could be made. It fails with 'EntityNotExistsError' if the workflow is not valid anymore due to completion or doesn't exist.- Specified by:
RequestCancelWorkflowExecution
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
CancellationAlreadyRequestedError
ServiceBusyError
DomainNotActiveError
LimitExceededError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_RequestCancelWorkflowExecution
public void send_RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RequestCancelWorkflowExecution
public void recv_RequestCancelWorkflowExecution() throws BadRequestError, EntityNotExistsError, CancellationAlreadyRequestedError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
-
SignalWorkflowExecution
public void SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution.- Specified by:
SignalWorkflowExecution
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_SignalWorkflowExecution
public void send_SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_SignalWorkflowExecution
public void recv_SignalWorkflowExecution() throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
SignalWithStartWorkflowExecution
public StartWorkflowExecutionResponse SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest signalWithStartRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, WorkflowExecutionAlreadyStartedError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow. If the workflow is running, this results in WorkflowExecutionSignaled event being recorded in the history and a decision task being created for the execution. If the workflow is not running or not found, this results in WorkflowExecutionStarted and WorkflowExecutionSignaled events being recorded in history, and a decision task being created for the execution- Specified by:
SignalWithStartWorkflowExecution
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
WorkflowExecutionAlreadyStartedError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_SignalWithStartWorkflowExecution
public void send_SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest signalWithStartRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_SignalWithStartWorkflowExecution
public StartWorkflowExecutionResponse recv_SignalWithStartWorkflowExecution() throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, WorkflowExecutionAlreadyStartedError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
WorkflowExecutionAlreadyStartedError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
ResetWorkflowExecution
public ResetWorkflowExecutionResponse ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive). And it will immediately terminating the current execution instance.- Specified by:
ResetWorkflowExecution
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_ResetWorkflowExecution
public void send_ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ResetWorkflowExecution
public ResetWorkflowExecutionResponse recv_ResetWorkflowExecution() throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
TerminateWorkflowExecution
public void TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event in the history and immediately terminating the execution instance.- Specified by:
TerminateWorkflowExecution
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_TerminateWorkflowExecution
public void send_TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_TerminateWorkflowExecution
public void recv_TerminateWorkflowExecution() throws BadRequestError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
ListOpenWorkflowExecutions
public ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, LimitExceededError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain.- Specified by:
ListOpenWorkflowExecutions
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
LimitExceededError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_ListOpenWorkflowExecutions
public void send_ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ListOpenWorkflowExecutions
public ListOpenWorkflowExecutionsResponse recv_ListOpenWorkflowExecutions() throws BadRequestError, EntityNotExistsError, ServiceBusyError, LimitExceededError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
LimitExceededError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
ListClosedWorkflowExecutions
public ListClosedWorkflowExecutionsResponse ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain.- Specified by:
ListClosedWorkflowExecutions
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_ListClosedWorkflowExecutions
public void send_ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ListClosedWorkflowExecutions
public ListClosedWorkflowExecutionsResponse recv_ListClosedWorkflowExecutions() throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
ListWorkflowExecutions
public ListWorkflowExecutionsResponse ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain.- Specified by:
ListWorkflowExecutions
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_ListWorkflowExecutions
public void send_ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ListWorkflowExecutions
public ListWorkflowExecutionsResponse recv_ListWorkflowExecutions() throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
ListArchivedWorkflowExecutions
public ListArchivedWorkflowExecutionsResponse ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain.- Specified by:
ListArchivedWorkflowExecutions
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_ListArchivedWorkflowExecutions
public void send_ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ListArchivedWorkflowExecutions
public ListArchivedWorkflowExecutionsResponse recv_ListArchivedWorkflowExecutions() throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
ScanWorkflowExecutions
public ListWorkflowExecutionsResponse ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order.- Specified by:
ScanWorkflowExecutions
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_ScanWorkflowExecutions
public void send_ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ScanWorkflowExecutions
public ListWorkflowExecutionsResponse recv_ScanWorkflowExecutions() throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
CountWorkflowExecutions
public CountWorkflowExecutionsResponse CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain.- Specified by:
CountWorkflowExecutions
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_CountWorkflowExecutions
public void send_CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_CountWorkflowExecutions
public CountWorkflowExecutionsResponse recv_CountWorkflowExecutions() throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
GetSearchAttributes
public GetSearchAttributesResponse GetSearchAttributes() throws ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs- Specified by:
GetSearchAttributes
in interfaceWorkflowService.Iface
- Throws:
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_GetSearchAttributes
public void send_GetSearchAttributes() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_GetSearchAttributes
public GetSearchAttributesResponse recv_GetSearchAttributes() throws ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
RespondQueryTaskCompleted
public void RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest) throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query) as a result of 'PollForDecisionTask' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow' API and return the query result to client as a response to 'QueryWorkflow' API call.- Specified by:
RespondQueryTaskCompleted
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_RespondQueryTaskCompleted
public void send_RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RespondQueryTaskCompleted
public void recv_RespondQueryTaskCompleted() throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, DomainNotActiveError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
DomainNotActiveError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
ResetStickyTaskList
public ResetStickyTaskListResponse ResetStickyTaskList(ResetStickyTaskListRequest resetRequest) throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, DomainNotActiveError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
Reset the sticky tasklist related information in mutable state of a given workflow. Things cleared are: 1. StickyTaskList 2. StickyScheduleToStartTimeout 3. ClientLibraryVersion 4. ClientFeatureVersion 5. ClientImpl- Specified by:
ResetStickyTaskList
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
DomainNotActiveError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
send_ResetStickyTaskList
public void send_ResetStickyTaskList(ResetStickyTaskListRequest resetRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ResetStickyTaskList
public ResetStickyTaskListResponse recv_ResetStickyTaskList() throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, DomainNotActiveError, ClientVersionNotSupportedError, WorkflowExecutionAlreadyCompletedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
DomainNotActiveError
ClientVersionNotSupportedError
WorkflowExecutionAlreadyCompletedError
org.apache.thrift.TException
-
QueryWorkflow
public QueryWorkflowResponse QueryWorkflow(QueryWorkflowRequest queryRequest) throws BadRequestError, EntityNotExistsError, QueryFailedError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
QueryWorkflow returns query result for a specified workflow execution- Specified by:
QueryWorkflow
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
QueryFailedError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_QueryWorkflow
public void send_QueryWorkflow(QueryWorkflowRequest queryRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_QueryWorkflow
public QueryWorkflowResponse recv_QueryWorkflow() throws BadRequestError, EntityNotExistsError, QueryFailedError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
QueryFailedError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
DescribeWorkflowExecution
public DescribeWorkflowExecutionResponse DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest) throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
DescribeWorkflowExecution returns information about the specified workflow execution.- Specified by:
DescribeWorkflowExecution
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_DescribeWorkflowExecution
public void send_DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_DescribeWorkflowExecution
public DescribeWorkflowExecutionResponse recv_DescribeWorkflowExecution() throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
DescribeTaskList
public DescribeTaskListResponse DescribeTaskList(DescribeTaskListRequest request) throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
DescribeTaskList returns information about the target tasklist, right now this API returns the pollers which polled this tasklist in last few minutes.- Specified by:
DescribeTaskList
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_DescribeTaskList
public void send_DescribeTaskList(DescribeTaskListRequest request) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_DescribeTaskList
public DescribeTaskListResponse recv_DescribeTaskList() throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
GetClusterInfo
public ClusterInfo GetClusterInfo() throws InternalServiceError, ServiceBusyError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
GetClusterInfo returns information about cadence cluster- Specified by:
GetClusterInfo
in interfaceWorkflowService.Iface
- Throws:
InternalServiceError
ServiceBusyError
org.apache.thrift.TException
-
send_GetClusterInfo
public void send_GetClusterInfo() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_GetClusterInfo
public ClusterInfo recv_GetClusterInfo() throws InternalServiceError, ServiceBusyError, org.apache.thrift.TException
- Throws:
InternalServiceError
ServiceBusyError
org.apache.thrift.TException
-
GetTaskListsByDomain
public GetTaskListsByDomainResponse GetTaskListsByDomain(GetTaskListsByDomainRequest request) throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
GetTaskListsByDomain returns the list of all the task lists for a domainName.- Specified by:
GetTaskListsByDomain
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
send_GetTaskListsByDomain
public void send_GetTaskListsByDomain(GetTaskListsByDomainRequest request) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_GetTaskListsByDomain
public GetTaskListsByDomainResponse recv_GetTaskListsByDomain() throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
-
ListTaskListPartitions
public ListTaskListPartitionsResponse ListTaskListPartitions(ListTaskListPartitionsRequest request) throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
ReapplyEvents applies stale events to the current workflow and current run- Specified by:
ListTaskListPartitions
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
org.apache.thrift.TException
-
send_ListTaskListPartitions
public void send_ListTaskListPartitions(ListTaskListPartitionsRequest request) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_ListTaskListPartitions
public ListTaskListPartitionsResponse recv_ListTaskListPartitions() throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, org.apache.thrift.TException
- Throws:
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
org.apache.thrift.TException
-
RefreshWorkflowTasks
public void RefreshWorkflowTasks(RefreshWorkflowTasksRequest request) throws BadRequestError, DomainNotActiveError, ServiceBusyError, EntityNotExistsError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RefreshWorkflowTasks refreshes all tasks of a workflow- Specified by:
RefreshWorkflowTasks
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
DomainNotActiveError
ServiceBusyError
EntityNotExistsError
org.apache.thrift.TException
-
send_RefreshWorkflowTasks
public void send_RefreshWorkflowTasks(RefreshWorkflowTasksRequest request) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
recv_RefreshWorkflowTasks
public void recv_RefreshWorkflowTasks() throws BadRequestError, DomainNotActiveError, ServiceBusyError, EntityNotExistsError, org.apache.thrift.TException
- Throws:
BadRequestError
DomainNotActiveError
ServiceBusyError
EntityNotExistsError
org.apache.thrift.TException
-
-