this.workflowType = workflowType;
}
@Override
public void terminateWorkflowExecution(String reason, String details, ChildPolicy childPolicy) {
TerminateWorkflowExecutionParameters terminateParameters = new TerminateWorkflowExecutionParameters();
terminateParameters.setReason(reason);
terminateParameters.setDetails(details);
if (childPolicy != null) {
terminateParameters.setChildPolicy(childPolicy);
}
terminateParameters.setWorkflowExecution(workflowExecution);
genericClient.terminateWorkflowExecution(terminateParameters);
}