Skip to main content

AF Attribute AF Attribute


AF Attribute UpdateAF-Attribute-Update


Input​

InputsTypeMandatoryDescription
CheckinLimitintN
AttributeItemsJSAttributeItems arrayY
   TargetPrimaryPathstringY
   CreateSubAttributesboolN
   TemplatestringN
   SourceAttributeY
      AttributePropertiesarrayY
         NamestringY
         TemplatestringY
         DescriptionstringY
         Categoriesarray of stringY
         ConfigStringstringY
         DataReferencePlugInstringY
         DefaultUOMstringY
         IsConfigurationItemstringY
         IsManualDataEntrystringY
         IsHiddenstringY
         IsExcludedstringY
         ValueJSAttributeValY
            IsAnythingValueY
            T
            V
         TypeQualifierstringY
         Categoriesstring[]Y
      AttributesY
         AttributePropertiesarrayY
         AttributesarrayY

Output​

| Outputs | Type | Description | Example |
| --- | --- | --- | --- |
| array[2] | array | | array |
| 0 | object | | object |
|    PrimaryPath | string | | ""\\NodeADSTestSystem\NodeTestCaseTarget\Test1"" |
|    Template | string | | """" |
|    Name | string | | ""Attribute1"" |
|    Action | string | | ""Synced"" |
| 1 | object | | object |
|    PrimaryPath | string | | ""\\NodeADSTestSystem\NodeTestCaseTarget\Test1|Attribute1"" |
|    Template | string | | """" |
|    Name | string | | ""ChildAttribute"" |
|    Action | string | | ""Synced"" |

Example Input Payload​

msg.payload = {
"AttributeItems": [
{
"TargetPrimaryPath": "\\\\"+env.get("TestSystem")+"\\"+env.get("TestDatabase")+"\\Test1",
"SourceAttribute": {
"AttributeProperties": {
"Name": "Attribute1",
"Template": "",
"Description": "",
"ValueType": "Double",
"ConfigString": "",
"IsAnalysisInput": false,
"IsAnalysisOutput": false,
"SimpleConfig": "",
"IsDataReferenceDefinedByTemplate": false,
"DataReferencePlugIn": "",
"DefaultUOM": "",
"IsConfigurationItem": "True",
"IsManualDataEntry": "False",
"IsHidden": "False",
"IsExcluded": "False",
"ID": "0ea43d7d-e871-4c1c-bd31-824dedccedce",
"UniqueID": "0ea43d7d-e871-4c1c-bd31-824dedccedce",
"TypeQualifier": "",
"IsTypeQualifierGlobal": false,
"Categories": [],
"Value": {
"IsAnythingValue": false,
"T": "Double",
"V": 0,
"Timestamp": 0,
"Q": false,
"S": false
}
},
"Attributes": null
}
},
{
"TargetPrimaryPath": "\\\\"+env.get("TestSystem")+"\\"+env.get("TestDatabase")+"\\Test1|Attribute1",
"SourceAttribute": {
"AttributeProperties": {
"Name": "ChildAttribute",
"Template": "",
"Description": "",
"ValueType": "Double",
"ConfigString": "",
"IsAnalysisInput": false,
"IsAnalysisOutput": false,
"SimpleConfig": "",
"IsDataReferenceDefinedByTemplate": false,
"DataReferencePlugIn": "",
"DefaultUOM": "",
"IsConfigurationItem": "True",
"IsManualDataEntry": "False",
"IsHidden": "False",
"IsExcluded": "False",
"ID": "5f3d87e7-d1ce-4702-8b3a-0cb39213340e",
"UniqueID": "5f3d87e7-d1ce-4702-8b3a-0cb39213340e",
"TypeQualifier": "",
"IsTypeQualifierGlobal": false,
"Categories": [],
"Value": {
"IsAnythingValue": false,
"T": "Double",
"V": 0,
"Timestamp": 0,
"Q": false,
"S": false
}
},
"Attributes": null
}
}
]
};
return msg;

Example Flow​

[
{
"id": "3767ee4afc4259ab",
"type": "AF Attribute Update",
"z": "fbcc6f6461481998",
"name": "",
"x": 150,
"y": 480,
"wires": [
[]
]
}
]