Search in sources :

Example 1 with SignalWorkflowExecutionRequest

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);
    }
}
Also used : TException(org.apache.thrift.TException) SignalWorkflowExecutionRequest(com.uber.cadence.SignalWorkflowExecutionRequest) WorkflowExecution(com.uber.cadence.WorkflowExecution)

Aggregations

SignalWorkflowExecutionRequest (com.uber.cadence.SignalWorkflowExecutionRequest)1 WorkflowExecution (com.uber.cadence.WorkflowExecution)1 TException (org.apache.thrift.TException)1