Introduction
An engine defines the data structure of messages passed between nodes in an integration flow.
Coordinate: com.alibaba.bwif.script.core.StepMessage
Structure
Property | Type | Description |
id | String | The unique ID of a message. The input and output messages for each node have different IDs. |
attribute | Map |
|
payload | Object |
|
variable | Map |
|
error | StepException | Stores the error message. |
Construction
Only the integration stream engine can construct this object. You cannot construct it in a script.
Method list
Method | Description |
String getTrackId() | The ID for a single stream run. It corresponds to the TraceID in the debugger and the operational log. |
String getId() | The unique ID for a message at a specific node. The ID changes each time the message passes through a processing node. |
Object getPayload() | Gets the payload. The returned object is of type Object and must be cast to the appropriate type. For example: HttpRequest request = (HttpRequest) message.getPayload();. |
Map getVariable() | The variable's data type is Map. |
Map getAttribute() | The configuration properties of the node. This includes the node's configuration information and the parameters for any configured connectors. |
StepException getError() | The error message passed down from the previous node. For more information, see com.alibaba.bwif.script.core.StepException. |