List of usage examples for com.amazonaws.services.simpleworkflow AmazonSimpleWorkflowClient terminateWorkflowExecution
@Override public void terminateWorkflowExecution(TerminateWorkflowExecutionRequest request)
Records a WorkflowExecutionTerminated
event and forces closure of the workflow execution identified by the given domain, runId, and workflowId.
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); }