CfgStrValue() Function

Note: This function is an Axeda ConnectedConfiguration  feature. If the Axeda Platform is not licensed for ConnectedConfiguration, you will not have access to this function.

This function can operate on the asset in scope or it can be specified to operate on another, specified asset.

Operating on the asset in scope:

CfgStrValue() function finds the String value corresponding to the specified Path for the asset in the rule execution context. When multiple identical Paths exist in the configuration, the Path argument should include the array index to indicate which configuration element should be returned. For example, the Path "/Config/Hardware/Motherboard[2]/Version" identifies the third occurrence in the array.

Format:

String CfgStrValue(String “path”)

where:

path -- The Path defined for this comparison

Example:

The following example determines if the motherboard specified in the Path (for the related asset) is an "Asus" motherboard.

If: CfgStrValue(“/Config/Hardware/MotherBoard/Make”) == "ACME"

Operating on a specified asset:

CfgStrValue() function finds the String value corresponding to the specified Path for the asset corresponding to the specified model and serial number. When multiple identical Paths exist in the configuration, the Path argument should include the array index to indicate which configuration element should be returned.

Format:

String CfgStrValue(String "path", String "modelNumber", String "serialNumber")

where:

path -- The Path defined for this comparison. Trailing or leading Asterisk (*) wildcards are allowed.

modelNumber -- The model of the asset configuration (Path) for this comparison

serialNumber-- The serial number of the asset configuration (Path) for this comparison

Example:

The following example compares determines if the motherboard specified in the Path (for the related asset) is an "Asus" motherboard.

If: CfgStrValue(“/Config/Hardware/MotherBoard/Make”) == "ACME"

Notes on Rule Execution: