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

Logic.

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


Node Name

Required.

The name for this node.


Query Method

Required.

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

Required.

The tag’s key and value. Supports expression.


Output

Required.

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

Optional.

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"
}