com.apama.cumulocity
Event GenericResponse
Zero or more GenericResponse events are sent for each GenericRequest on the GenericResponse.SUBSCRIBE_CHANNEL channel, followed by a GenericResponseComplete.
In 10.7.0 the semantics of the response body element were changed so that body directly contains the response from the request. The pre-10.7.0 behavior where body is erroneously contained in a single-element dictionary containing the response as a value can be obtained by setting a correlator property on startup: analyticsBuilder.genericResponse.body=payload. This may be needed for compatibility with applications running as a Streaming Analytics application in Cumulocity IoT 10.9 or later.
Alternatively, instead of writing response.body (the new form), this will work with both semantics: AnyExtractor(response.body).getDictionary("").getOr("", response.body).
-
Since:
- 10.5.0.0
Constant summary |
string | CHANNEL := "cumulocity.generic.response"
The channel to which Generic responses are sent from the transport.
-
Deprecated:
-
[This channel constant has been deprecated. Use SUBSCRIBE_CHANNEL instead.]
|
string | SUBSCRIBE_CHANNEL := "cumulocity.generic.response"
The channel to which Generic responses are sent from the transport. |
Member summary |
integer | reqId
Request identifier from the original GenericRequest. |
any | body
The response body, typically a dictionary or sequence. |
CHANNEL
string CHANNEL := "cumulocity.generic.response"
-
Deprecated:
-
[This channel constant has been deprecated. Use SUBSCRIBE_CHANNEL instead.]
The channel to which Generic responses are sent from the transport.
SUBSCRIBE_CHANNEL
string SUBSCRIBE_CHANNEL := "cumulocity.generic.response"
The channel to which Generic responses are sent from the transport.
-
Since:
- 10.5.2.0
body
any body
The response body, typically a dictionary or sequence.
reqId
integer reqId
Request identifier from the original GenericRequest.