Model Property¶
The Model Property node searches for a model via the data in the metadata and outputs the specified model data to the output msg.
Node Type¶
Enrichment.
Input and Output Ability¶
This node has 1 entry point and 1 exit point. The input and output format is JSON.
Node Properties¶
Name
The name for this node.
Output
The model data to be added to the output msg. Available options include the model ID and model ID path. After selecting the model data, you can choose to enter a corresponding alias. If an alias is given, the alias will be used to replace the name in the output msg.
The table below shows the scenarios for a model ID with value “model8385”.
Alias |
Output Msg |
---|---|
Not given |
“modelId”: “model8385” |
myModel |
“myModel”: “model8385” |
Model Tag Output
You can also add existing model tags to the output msg and give your own alias to the model tags if required. Click + Model Tag to enter the model tag key and its alias.
The table below shows the scenarios for an existing model tag “color” with value “blue”.
Key |
Alias |
Output Msg |
---|---|---|
Not given |
Not given |
Model tag will not be shown in output msg, as no tag is specified. |
color |
Not given |
“color”: “blue” |
color |
shade |
“shade”: “blue” |
highlight |
shade |
Model tag will not be shown in output msg, as there is no model tag named “highlight”. |
Description
The description for this node.
Limitations¶
The input msg must be in EnOS standard data format, with the metadata containing the asset ID, device key, product key, and organization ID.
Samples¶
Input Sample¶
{
"id": "vstk14Od",
"lastUpdate": null,
"attribute": {
"street": 72
},
"measurepoint": {
"EnergyOut": null
}
}
Output Sample¶
{
"id": "vstk14Od",
"myModelId": "vFtWt183",
"myModelIdPath": "/vFtWt183",
"color":"blue",
"lastUpdate": null,
"attribute": {
"street": 72
},
"measurepoint": {
"EnergyOut": null
}
}