use of com.uber.cadence.SignalWorkflowExecutionRequest in project cadence-client by uber-java.
the class GenericWorkflowClientExternalImpl method signalWorkflowExecution.
@Override
public void signalWorkflowExecution(SignalExternalWorkflowParameters signalParameters) {
SignalWorkflowExecutionRequest request = new SignalWorkflowExecutionRequest();
request.setDomain(domain);
request.setInput(signalParameters.getInput());
request.setSignalName(signalParameters.getSignalName());
WorkflowExecution execution = new WorkflowExecution();
execution.setRunId(signalParameters.getRunId());
execution.setWorkflowId(signalParameters.getWorkflowId());
request.setWorkflowExecution(execution);
try {
service.SignalWorkflowExecution(request);
} catch (TException e) {
throw CheckedExceptionWrapper.wrap(e);
}
}
Aggregations