Example usage for com.amazonaws.services.simpleworkflow AmazonSimpleWorkflowClient terminateWorkflowExecution

List of usage examples for com.amazonaws.services.simpleworkflow AmazonSimpleWorkflowClient terminateWorkflowExecution

Introduction

In this page you can find the example usage for com.amazonaws.services.simpleworkflow AmazonSimpleWorkflowClient terminateWorkflowExecution.

Prototype

@Override
public void terminateWorkflowExecution(TerminateWorkflowExecutionRequest request) 

Source Link

Document

Records a WorkflowExecutionTerminated event and forces closure of the workflow execution identified by the given domain, runId, and workflowId.

Usage

From source file:org.wildfly.camel.test.common.aws.SWFUtils.java

License:Apache License

public static void terminateWorkflowExecution(AmazonSimpleWorkflowClient swfClient, String workflowId) {
    TerminateWorkflowExecutionRequest terminateReq = new TerminateWorkflowExecutionRequest()
            .withWorkflowId(workflowId).withDomain(DOMAIN);
    swfClient.terminateWorkflowExecution(terminateReq);
}