DynamicWorkflowClientExternal dynamicWorkflowClientExternal = getDynamicWorkflowClient(workflowId, runId);
dynamicWorkflowClientExternal.requestCancelWorkflowExecution();
}
public void terminateWorkflowExecution(String workflowId, String runId, String reason, String details, String childPolicy) {
DynamicWorkflowClientExternal dynamicWorkflowClientExternal = getDynamicWorkflowClient(workflowId, runId);
ChildPolicy policy = childPolicy != null ? ChildPolicy.valueOf(childPolicy) : null;
dynamicWorkflowClientExternal.terminateWorkflowExecution(reason, details, policy);
}