Working with metadata in the rule

We will use the same rule as before, where we used streamdata together with the threshold crossing. In this example, the threshold crossing will be defined on the metadata model for that resource. Here is the meta model: image

We will be again using the Function sensor with the binding feature to set two input arguments: Input argument to the formula:

${streamdata.temperature}

and the threshold coming from the meta:

${node.resource.meta.threshold}

Finally we have put the task in the streaming mode and send some data:

image