Integration Server 10.11 | Built-In Services Reference Guide | gRPC Folder | Summary of Elements in This Folder | pub.grpc.observer:onCompleted
 
pub.grpc.observer:onCompleted
WmGRPC. Notifies the gRPC server of a successful stream completion.
Input Parameters
streamObserver
Object A gRPC object used by the gRPC server to return the response to the gRPC client.
Output Parameters
None
Usage Notes
For a unary gRPC method, pub.grpc.observer:onCompleted is the final service invoked in a successful execution of the generated gRPC method flow service. Upon completion, the gRPC server sends the response tot the gRPC client.
An instance of the streamObserver is present in the pipeline when any gRPC method flow service is invoked by the gRPC server. It is an opaque object to be used only as input to the pub.grpc.observer:onNext, pub.grpc.observer:onCompleted, or pub.grpc.observer:onError services.
The gRPC method flow service generated for a gRPC descriptor already contains the call to the pub.grpc.observer:onCompleted service for unary methods. The generated gRPC method flow service includes preset pipeline mapping into the pub.grpc.observer:onCompleted service. You should not need to edit the auto generated pub.grpc.observer:onCompleted step of the gRPC method flow service.
If you modify the gRPC method flow service to include an INVOKE step for pub.grpc.observer:onErrorto indicate an error in the processing of the gRPC method flow service, ensure that the pub.grpc.observer:onCompleted will not execute after pub.grpc.observer:onError.