com.uber.cadence.internal.external.GenericWorkflowClientExternal Maven / Gradle / Ivy
/*
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Modifications copyright (C) 2017 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this file except in compliance with the License. A copy of the License is
* located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.uber.cadence.internal.external;
import com.uber.cadence.WorkflowExecution;
import com.uber.cadence.WorkflowExecutionAlreadyStartedError;
import com.uber.cadence.internal.common.SignalWithStartWorkflowExecutionParameters;
import com.uber.cadence.internal.common.StartWorkflowExecutionParameters;
import com.uber.cadence.internal.common.TerminateWorkflowExecutionParameters;
import com.uber.cadence.internal.replay.QueryWorkflowParameters;
import com.uber.cadence.internal.replay.SignalExternalWorkflowParameters;
import com.uber.cadence.serviceclient.IWorkflowService;
public interface GenericWorkflowClientExternal {
WorkflowExecution startWorkflow(StartWorkflowExecutionParameters startParameters)
throws WorkflowExecutionAlreadyStartedError;
void signalWorkflowExecution(SignalExternalWorkflowParameters signalParameters);
WorkflowExecution signalWithStartWorkflowExecution(
SignalWithStartWorkflowExecutionParameters parameters);
void requestCancelWorkflowExecution(WorkflowExecution execution);
byte[] queryWorkflow(QueryWorkflowParameters queryParameters);
void terminateWorkflowExecution(TerminateWorkflowExecutionParameters terminateParameters);
String generateUniqueId();
IWorkflowService getService();
String getDomain();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy