GET_ADT_BOOL_PROPERTY

Retrieve the value of a given property (by name) for a given instance of a model other than the current model. This function is intended for properties outside of this current model.

Usage

GET_ADT_BOOL_PROPERTY(modelId, instanceId, propertyName)

Parameters

modelId

String

The full ID of the model

instanceId

String

The ID of the instance you are retrieving a property for

propertyName

String

The fully qualified name of the property (see remarks)

Returns

Boolean

Examples

GET_ADT_BOOL_PROPERTY(‘dtmi:mycompany:mymodel;1’, ‘instance3’, ‘/namespace/Property1’)

True

Remarks

  1. This function only retrieves actual values when executed in a real deployment. In the test environment, it always returns true.

  2. This function is intended for properties outside of this current model. When specifying the name of the property to retrieve, you will need the fully qualified name, using the component name. For instance, if the property you need to act on is in an Azure DT model whose component is named ‘myComponent’, then the property name will be ‘/myComponent/propertyName’