AF Attribute
AF-Attribute-Update
Input
| Inputs | Type | Mandatory | Description |
|---|---|---|---|
| CheckinLimit | int | N | |
| AttributeItems | JSAttributeItems array | Y | |
| TargetPrimaryPath | string | Y | |
| CreateSubAttributes | bool | N | |
| Template | string | N | |
| SourceAttribute | Y | ||
| AttributeProperties | array | Y | |
| Name | string | Y | |
| Template | string | Y | |
| Description | string | Y | |
| Categories | array of string | Y | |
| ConfigString | string | Y | |
| DataReferencePlugIn | string | Y | |
| DefaultUOM | string | Y | |
| IsConfigurationItem | string | Y | |
| IsManualDataEntry | string | Y | |
| IsHidden | string | Y | |
| IsExcluded | string | Y | |
| Value | JSAttributeVal | Y | |
| IsAnythingValue | Y | ||
| T | |||
| V | |||
| TypeQualifier | string | Y | |
| Categories | string[] | Y | |
| Attributes | Y | ||
| AttributeProperties | array | Y | |
| Attributes | array | Y |
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": [
[]
]
}
]