use of io.camunda.zeebe.client.api.response.CancelProcessInstanceResponse in project zeebe by camunda.
the class CancelProcessInstanceCommandImpl method send.
@Override
public ZeebeFuture<CancelProcessInstanceResponse> send() {
final CancelProcessInstanceRequest request = builder.build();
final RetriableClientFutureImpl<CancelProcessInstanceResponse, GatewayOuterClass.CancelProcessInstanceResponse> future = new RetriableClientFutureImpl<>(CancelProcessInstanceResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
use of io.camunda.zeebe.client.api.response.CancelProcessInstanceResponse in project zeebe by camunda.
the class CancelProcessInstanceTest method shouldNotHaveNullResponse.
@Test
public void shouldNotHaveNullResponse() {
// given
final CancelProcessInstanceCommandStep1 command = client.newCancelInstanceCommand(12);
// when
final CancelProcessInstanceResponse response = command.send().join();
// then
assertThat(response).isNotNull();
}
use of io.camunda.zeebe.client.api.response.CancelProcessInstanceResponse in project zeebe by zeebe-io.
the class CancelProcessInstanceTest method shouldNotHaveNullResponse.
@Test
public void shouldNotHaveNullResponse() {
// given
final CancelProcessInstanceCommandStep1 command = client.newCancelInstanceCommand(12);
// when
final CancelProcessInstanceResponse response = command.send().join();
// then
assertThat(response).isNotNull();
}
use of io.camunda.zeebe.client.api.response.CancelProcessInstanceResponse in project zeebe by camunda-cloud.
the class CancelProcessInstanceCommandImpl method send.
@Override
public ZeebeFuture<CancelProcessInstanceResponse> send() {
final CancelProcessInstanceRequest request = builder.build();
final RetriableClientFutureImpl<CancelProcessInstanceResponse, GatewayOuterClass.CancelProcessInstanceResponse> future = new RetriableClientFutureImpl<>(CancelProcessInstanceResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
use of io.camunda.zeebe.client.api.response.CancelProcessInstanceResponse in project zeebe by zeebe-io.
the class CancelProcessInstanceCommandImpl method send.
@Override
public ZeebeFuture<CancelProcessInstanceResponse> send() {
final CancelProcessInstanceRequest request = builder.build();
final RetriableClientFutureImpl<CancelProcessInstanceResponse, GatewayOuterClass.CancelProcessInstanceResponse> future = new RetriableClientFutureImpl<>(CancelProcessInstanceResponseImpl::new, retryPredicate, streamObserver -> send(request, streamObserver));
send(request, future);
return future;
}
Aggregations