Skip to content

Commit

Permalink
Merge pull request #25 from SoftwareAG/feature-new-samples
Browse files Browse the repository at this point in the history
ues input properties
  • Loading branch information
ck-c8y authored May 10, 2024
2 parents 6364098 + dcc7c0c commit e0938bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion repository/blocks/EnhancedHttpOutputBlock.mon
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ event EnhancedHTTPOutput {
if $parameters.wrapBody {
data := {"modelName":<any>modelName, "value":$input_value }; // $input_value is a Value object with fields value, timestamp, properties - this will be output as a JSON object.
} else {
data := $input_value.value;
if $input_value.properties.size() = 0 {
// if properties are empty the use the input value
data := $input_value.value;
} else {
data := $input_value.properties;
}
}


Expand Down

0 comments on commit e0938bc

Please sign in to comment.