Lookup Product


The Lookup Product node enables an integration flow to query products in EnOS according to the query method you configured and uses the specified data records in the output.

Node Type

EnOS.

Input and Output Ability

This node has 1 entry point and 1 exit point. Both the input and output are JSON.

Node Properties

../../_images/lookup_product.png


Name

The name for this node.


Query Method

The method that the node uses to select the products to be used for the output. The following methods are available.

  • By Product Tag: Any product with product tags that matches what is returned in the expression.


Tag Key and Value

The tag’s key and value. Supports expression.


Output

The value of the returned models from the query, to be stored using key:value format in the output message. Currently supports product ID and product name.


Description

The description for this node.

Samples

Input Sample

{
    "externalId":"externalId",
    "timestamp":24214324324,
    "productTags":{
        "key1":"val1",
        "key2":"val2"
    },
    "measurepoints":{
        "speed":32,
        "heat":40,
    }
}

Output Sample

The Product Query node uses the expression ${msg.productTags.key1} and By Product Tag to search for any products whose tag matches the value of val1 and includes the product name in the output.

{
    "externalId":"externalId",
    "timestamp":24214324324,
    "productTags":{
        "key1":"val1",
        "key2":"val2"
    },
    "measurepoints":{
        "speed":32,
        "heat":40,
    },
    "productName":"prodName"
}