Package com.uber.cadence.serviceclient
Class IWorkflowServiceBase
- java.lang.Object
-
- com.uber.cadence.serviceclient.IWorkflowServiceBase
-
- All Implemented Interfaces:
IWorkflowService
,WorkflowService.AsyncIface
,WorkflowService.Iface
- Direct Known Subclasses:
MigrationIWorkflowService
public class IWorkflowServiceBase extends java.lang.Object implements IWorkflowService
-
-
Constructor Summary
Constructors Constructor Description IWorkflowServiceBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CountWorkflowExecutionsResponse
CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest)
CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain.void
CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
DeprecateDomain(DeprecateDomainRequest deprecateRequest)
DeprecateDomain us used to update status of a registered domain to DEPRECATED.void
DeprecateDomain(DeprecateDomainRequest deprecateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
DescribeDomainResponse
DescribeDomain(DescribeDomainRequest describeRequest)
DescribeDomain returns the information and configuration for a registered domain.void
DescribeDomain(DescribeDomainRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
DescribeTaskListResponse
DescribeTaskList(DescribeTaskListRequest request)
DescribeTaskList returns information about the target tasklist, right now this API returns the pollers which polled this tasklist in last few minutes.void
DescribeTaskList(DescribeTaskListRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler)
DescribeWorkflowExecutionResponse
DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest)
DescribeWorkflowExecution returns information about the specified workflow execution.void
DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ClusterInfo
GetClusterInfo()
GetClusterInfo returns information about cadence clustervoid
GetClusterInfo(org.apache.thrift.async.AsyncMethodCallback resultHandler)
ClientOptions
getOptions()
GetSearchAttributesResponse
GetSearchAttributes()
GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIsvoid
GetSearchAttributes(org.apache.thrift.async.AsyncMethodCallback resultHandler)
GetTaskListsByDomainResponse
GetTaskListsByDomain(GetTaskListsByDomainRequest request)
GetTaskListsByDomain returns the list of all the task lists for a domainName.void
GetTaskListsByDomain(GetTaskListsByDomainRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler)
GetWorkflowExecutionHistoryResponse
GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest)
Returns the history of specified workflow execution.void
GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
GetWorkflowExecutionHistoryResponse
GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, java.lang.Long timeoutInMillis)
GetWorkflowExecutionHistoryWithTimeout get workflow history same as GetWorkflowExecutionHistory but with timeout.void
GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis)
GetWorkflowExecutionHistoryWithTimeout get workflow history asynchronously same as GetWorkflowExecutionHistory but with timeout.java.util.concurrent.CompletableFuture<java.lang.Boolean>
isHealthy()
Checks if we have a valid connection to the Cadence cluster, and potentially resets the peer listListArchivedWorkflowExecutionsResponse
ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest)
ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain.void
ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ListClosedWorkflowExecutionsResponse
ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest)
ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain.void
ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ListDomainsResponse
ListDomains(ListDomainsRequest listRequest)
ListDomains returns the information and configuration for all domains.void
ListDomains(ListDomainsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ListOpenWorkflowExecutionsResponse
ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest)
ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain.void
ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ListTaskListPartitionsResponse
ListTaskListPartitions(ListTaskListPartitionsRequest request)
ReapplyEvents applies stale events to the current workflow and current runvoid
ListTaskListPartitions(ListTaskListPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ListWorkflowExecutionsResponse
ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest)
ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain.void
ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
PollForActivityTaskResponse
PollForActivityTask(PollForActivityTaskRequest pollRequest)
PollForActivityTask is called by application worker to process ActivityTask from a specific taskList.void
PollForActivityTask(PollForActivityTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
PollForDecisionTaskResponse
PollForDecisionTask(PollForDecisionTaskRequest pollRequest)
PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList.void
PollForDecisionTask(PollForDecisionTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
QueryWorkflowResponse
QueryWorkflow(QueryWorkflowRequest queryRequest)
QueryWorkflow returns query result for a specified workflow executionvoid
QueryWorkflow(QueryWorkflowRequest queryRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
RecordActivityTaskHeartbeatResponse
RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest)
RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask.void
RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
RecordActivityTaskHeartbeatResponse
RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest)
RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask.void
RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RefreshWorkflowTasks(RefreshWorkflowTasksRequest request)
RefreshWorkflowTasks refreshes all tasks of a workflowvoid
RefreshWorkflowTasks(RefreshWorkflowTasksRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RegisterDomain(RegisterDomainRequest registerRequest)
RegisterDomain creates a new domain which can be used as a container for all resources.void
RegisterDomain(RegisterDomainRequest registerRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest)
RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance.void
RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ResetStickyTaskListResponse
ResetStickyTaskList(ResetStickyTaskListRequest resetRequest)
Reset the sticky tasklist related information in mutable state of a given workflow.void
ResetStickyTaskList(ResetStickyTaskListRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ResetWorkflowExecutionResponse
ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest)
ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive).void
ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest)
RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask.void
RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest)
RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask.void
RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest)
RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask.void
RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest)
RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask.void
RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest)
RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask.void
RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest)
RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask.void
RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
RespondDecisionTaskCompletedResponse
RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest)
RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of 'PollForDecisionTask' API call.void
RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest)
RespondDecisionTaskFailed is called by application worker to indicate failure.void
RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest)
RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query) as a result of 'PollForDecisionTask' API call.void
RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
RestartWorkflowExecutionResponse
RestartWorkflowExecution(RestartWorkflowExecutionRequest restartRequest)
RestartWorkflowExecution restarts a previous workflow If the workflow is currently running it will terminate and restartvoid
RestartWorkflowExecution(RestartWorkflowExecutionRequest restartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
ListWorkflowExecutionsResponse
ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest)
ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order.void
ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
StartWorkflowExecutionResponse
SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest signalWithStartRequest)
SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow.void
SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest signalWithStartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
SignalWithStartWorkflowExecutionAsyncResponse
SignalWithStartWorkflowExecutionAsync(SignalWithStartWorkflowExecutionAsyncRequest signalWithStartRequest)
SignalWithStartWorkflowExecutionAsync is used to ensure sending signal to a workflow asynchronously.void
SignalWithStartWorkflowExecutionAsync(SignalWithStartWorkflowExecutionAsyncRequest signalWithStartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest)
SignalWorkflowExecution is used to send a signal event to running workflow execution.void
SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
SignalWorkflowExecutionWithTimeout(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis)
SignalWorkflowExecutionWithTimeout signal workflow same as SignalWorkflowExecution but with timeoutStartWorkflowExecutionResponse
StartWorkflowExecution(StartWorkflowExecutionRequest startRequest)
StartWorkflowExecution starts a new long running workflow instance.void
StartWorkflowExecution(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
StartWorkflowExecutionAsyncResponse
StartWorkflowExecutionAsync(StartWorkflowExecutionAsyncRequest startRequest)
StartWorkflowExecutionAsync starts a new long running workflow instance asynchronously.void
StartWorkflowExecutionAsync(StartWorkflowExecutionAsyncRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
void
StartWorkflowExecutionAsyncWithTimeout(StartWorkflowExecutionAsyncRequest startAsyncRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis)
StartWorkflowExecutionAsyncWithTimeout start workflow same as StartWorkflowExecutionAsync but with timeoutvoid
StartWorkflowExecutionWithTimeout(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis)
StartWorkflowExecutionWithTimeout start workflow same as StartWorkflowExecution but with timeoutvoid
TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest)
TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event in the history and immediately terminating the execution instance.void
TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
UpdateDomainResponse
UpdateDomain(UpdateDomainRequest updateRequest)
UpdateDomain is used to update the information and configuration for a registered domain.void
UpdateDomain(UpdateDomainRequest updateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler)
-
-
-
Method Detail
-
getOptions
public ClientOptions getOptions()
- Specified by:
getOptions
in interfaceIWorkflowService
-
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
-
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
-
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
-
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
-
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
-
RestartWorkflowExecution
public RestartWorkflowExecutionResponse RestartWorkflowExecution(RestartWorkflowExecutionRequest restartRequest) throws BadRequestError, ServiceBusyError, DomainNotActiveError, LimitExceededError, EntityNotExistsError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
RestartWorkflowExecution restarts a previous workflow If the workflow is currently running it will terminate and restart- Specified by:
RestartWorkflowExecution
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
ServiceBusyError
DomainNotActiveError
LimitExceededError
EntityNotExistsError
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
-
StartWorkflowExecutionAsync
public StartWorkflowExecutionAsyncResponse StartWorkflowExecutionAsync(StartWorkflowExecutionAsyncRequest startRequest) throws BadRequestError, WorkflowExecutionAlreadyStartedError, ServiceBusyError, DomainNotActiveError, LimitExceededError, EntityNotExistsError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
StartWorkflowExecutionAsync starts a new long running workflow instance asynchronously. It will push a StartWorkflowExecutionRequest to a queue and immediately return a response. The request will be processed by a separate consumer eventually.- Specified by:
StartWorkflowExecutionAsync
in interfaceWorkflowService.Iface
- 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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
SignalWithStartWorkflowExecutionAsync
public SignalWithStartWorkflowExecutionAsyncResponse SignalWithStartWorkflowExecutionAsync(SignalWithStartWorkflowExecutionAsyncRequest signalWithStartRequest) throws BadRequestError, WorkflowExecutionAlreadyStartedError, ServiceBusyError, DomainNotActiveError, LimitExceededError, EntityNotExistsError, ClientVersionNotSupportedError, org.apache.thrift.TException
Description copied from interface:WorkflowService.Iface
SignalWithStartWorkflowExecutionAsync is used to ensure sending signal to a workflow asynchronously. It will push a SignalWithStartWorkflowExecutionRequest to a queue and immediately return a response. The request will be processed by a separate consumer eventually.- Specified by:
SignalWithStartWorkflowExecutionAsync
in interfaceWorkflowService.Iface
- Throws:
BadRequestError
WorkflowExecutionAlreadyStartedError
ServiceBusyError
DomainNotActiveError
LimitExceededError
EntityNotExistsError
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
RegisterDomain
public void RegisterDomain(RegisterDomainRequest registerRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RegisterDomain
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
DescribeDomain
public void DescribeDomain(DescribeDomainRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
DescribeDomain
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ListDomains
public void ListDomains(ListDomainsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ListDomains
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
UpdateDomain
public void UpdateDomain(UpdateDomainRequest updateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
UpdateDomain
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
DeprecateDomain
public void DeprecateDomain(DeprecateDomainRequest deprecateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
DeprecateDomain
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RestartWorkflowExecution
public void RestartWorkflowExecution(RestartWorkflowExecutionRequest restartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RestartWorkflowExecution
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
StartWorkflowExecution
public void StartWorkflowExecution(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
StartWorkflowExecution
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
StartWorkflowExecutionAsync
public void StartWorkflowExecutionAsync(StartWorkflowExecutionAsyncRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
StartWorkflowExecutionAsync
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
GetWorkflowExecutionHistory
public void GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
GetWorkflowExecutionHistory
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
PollForDecisionTask
public void PollForDecisionTask(PollForDecisionTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
PollForDecisionTask
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondDecisionTaskCompleted
public void RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondDecisionTaskCompleted
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondDecisionTaskFailed
public void RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondDecisionTaskFailed
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
PollForActivityTask
public void PollForActivityTask(PollForActivityTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
PollForActivityTask
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RecordActivityTaskHeartbeat
public void RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RecordActivityTaskHeartbeat
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RecordActivityTaskHeartbeatByID
public void RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RecordActivityTaskHeartbeatByID
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondActivityTaskCompleted
public void RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondActivityTaskCompleted
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondActivityTaskCompletedByID
public void RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondActivityTaskCompletedByID
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondActivityTaskFailed
public void RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondActivityTaskFailed
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondActivityTaskFailedByID
public void RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondActivityTaskFailedByID
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondActivityTaskCanceled
public void RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondActivityTaskCanceled
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondActivityTaskCanceledByID
public void RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondActivityTaskCanceledByID
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RequestCancelWorkflowExecution
public void RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RequestCancelWorkflowExecution
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
SignalWorkflowExecution
public void SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
SignalWorkflowExecution
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
SignalWithStartWorkflowExecution
public void SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest signalWithStartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
SignalWithStartWorkflowExecution
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
SignalWithStartWorkflowExecutionAsync
public void SignalWithStartWorkflowExecutionAsync(SignalWithStartWorkflowExecutionAsyncRequest signalWithStartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
SignalWithStartWorkflowExecutionAsync
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ResetWorkflowExecution
public void ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ResetWorkflowExecution
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
TerminateWorkflowExecution
public void TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
TerminateWorkflowExecution
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ListOpenWorkflowExecutions
public void ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ListOpenWorkflowExecutions
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ListClosedWorkflowExecutions
public void ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ListClosedWorkflowExecutions
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ListWorkflowExecutions
public void ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ListWorkflowExecutions
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ListArchivedWorkflowExecutions
public void ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ListArchivedWorkflowExecutions
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ScanWorkflowExecutions
public void ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ScanWorkflowExecutions
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
CountWorkflowExecutions
public void CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
CountWorkflowExecutions
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
GetSearchAttributes
public void GetSearchAttributes(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
GetSearchAttributes
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RespondQueryTaskCompleted
public void RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RespondQueryTaskCompleted
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ResetStickyTaskList
public void ResetStickyTaskList(ResetStickyTaskListRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ResetStickyTaskList
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
QueryWorkflow
public void QueryWorkflow(QueryWorkflowRequest queryRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
QueryWorkflow
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
DescribeWorkflowExecution
public void DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
DescribeWorkflowExecution
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
DescribeTaskList
public void DescribeTaskList(DescribeTaskListRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
DescribeTaskList
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
GetClusterInfo
public void GetClusterInfo(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
GetClusterInfo
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
GetTaskListsByDomain
public void GetTaskListsByDomain(GetTaskListsByDomainRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
GetTaskListsByDomain
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ListTaskListPartitions
public void ListTaskListPartitions(ListTaskListPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
ListTaskListPartitions
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
RefreshWorkflowTasks
public void RefreshWorkflowTasks(RefreshWorkflowTasksRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
- Specified by:
RefreshWorkflowTasks
in interfaceWorkflowService.AsyncIface
- Throws:
org.apache.thrift.TException
-
close
public void close()
- Specified by:
close
in interfaceIWorkflowService
-
StartWorkflowExecutionWithTimeout
public void StartWorkflowExecutionWithTimeout(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
Description copied from interface:IWorkflowService
StartWorkflowExecutionWithTimeout start workflow same as StartWorkflowExecution but with timeout- Specified by:
StartWorkflowExecutionWithTimeout
in interfaceIWorkflowService
- Throws:
org.apache.thrift.TException
-
StartWorkflowExecutionAsyncWithTimeout
public void StartWorkflowExecutionAsyncWithTimeout(StartWorkflowExecutionAsyncRequest startAsyncRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
Description copied from interface:IWorkflowService
StartWorkflowExecutionAsyncWithTimeout start workflow same as StartWorkflowExecutionAsync but with timeout- Specified by:
StartWorkflowExecutionAsyncWithTimeout
in interfaceIWorkflowService
- Throws:
org.apache.thrift.TException
-
GetWorkflowExecutionHistoryWithTimeout
public GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
Description copied from interface:IWorkflowService
GetWorkflowExecutionHistoryWithTimeout get workflow history same as GetWorkflowExecutionHistory but with timeout.- Specified by:
GetWorkflowExecutionHistoryWithTimeout
in interfaceIWorkflowService
- Returns:
- GetWorkflowExecutionHistoryResponse
- Throws:
org.apache.thrift.TException
-
GetWorkflowExecutionHistoryWithTimeout
public void GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
Description copied from interface:IWorkflowService
GetWorkflowExecutionHistoryWithTimeout get workflow history asynchronously same as GetWorkflowExecutionHistory but with timeout.- Specified by:
GetWorkflowExecutionHistoryWithTimeout
in interfaceIWorkflowService
- Throws:
org.apache.thrift.TException
-
SignalWorkflowExecutionWithTimeout
public void SignalWorkflowExecutionWithTimeout(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
Description copied from interface:IWorkflowService
SignalWorkflowExecutionWithTimeout signal workflow same as SignalWorkflowExecution but with timeout- Specified by:
SignalWorkflowExecutionWithTimeout
in interfaceIWorkflowService
- Throws:
org.apache.thrift.TException
-
isHealthy
public java.util.concurrent.CompletableFuture<java.lang.Boolean> isHealthy()
Description copied from interface:IWorkflowService
Checks if we have a valid connection to the Cadence cluster, and potentially resets the peer list- Specified by:
isHealthy
in interfaceIWorkflowService
-
-