File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed
src/main/java/com/uber/cadence/internal/compatibility Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -843,21 +843,25 @@ public void RequestCancelWorkflowExecution(
843
843
public void SignalWorkflowExecution (
844
844
SignalWorkflowExecutionRequest signalRequest , AsyncMethodCallback resultHandler )
845
845
throws TException {
846
- signalRequest .setRequestId (UUID .randomUUID ().toString ());
847
- ListenableFuture <com .uber .cadence .api .v1 .SignalWorkflowExecutionResponse > resultFuture =
848
- grpcServiceStubs
849
- .workflowFutureStub ()
850
- .signalWorkflowExecution (RequestMapper .signalWorkflowExecutionRequest (signalRequest ));
851
- resultFuture .addListener (
852
- () -> {
853
- try {
854
- com .uber .cadence .api .v1 .SignalWorkflowExecutionResponse response = resultFuture .get ();
855
- resultHandler .onComplete (null );
856
- } catch (Exception e ) {
857
- resultHandler .onError (e );
858
- }
859
- },
860
- ForkJoinPool .commonPool ());
846
+ try {
847
+ signalRequest .setRequestId (UUID .randomUUID ().toString ());
848
+ ListenableFuture <com .uber .cadence .api .v1 .SignalWorkflowExecutionResponse > resultFuture =
849
+ grpcServiceStubs
850
+ .workflowFutureStub ()
851
+ .signalWorkflowExecution (RequestMapper .signalWorkflowExecutionRequest (signalRequest ));
852
+ resultFuture .addListener (
853
+ () -> {
854
+ try {
855
+ com .uber .cadence .api .v1 .SignalWorkflowExecutionResponse response = resultFuture .get ();
856
+ resultHandler .onComplete (null );
857
+ } catch (Exception e ) {
858
+ resultHandler .onError (e );
859
+ }
860
+ },
861
+ ForkJoinPool .commonPool ());
862
+ } catch (StatusRuntimeException e ) {
863
+ throw ErrorMapper .Error (e );
864
+ }
861
865
}
862
866
863
867
@ Override
You can’t perform that action at this time.
0 commit comments