AF Attribute
AF-Attribute-Create
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 | string | Y | |
| T | string | N | |
| V | dynamic | N | |
| TypeQualifier | string | Y | |
| Categories | string[] | Y | |
| Attributes | Y | ||
| AttributeProperties | array | Y | |
| Attributes | array | Y |
Output
| Outputs | Type | Description | Example |
|---|---|---|---|
| array[4] | array | array[1] | |
| 0 | object | object | |
| Properties | object | object | |
| Name | string | ""CustomSetNoValue"" | |
| PrimaryPath | string | ""\Dev-AF1\NodeTestCaseSource\Element1"" | |
| Template | string | """" | |
| Action | string | ""Created"" |
Example Input Payload
msg.payload = {
AttributeItems: [
{
"TargetPrimaryPath": "\\\\"+env.get("TestSystem")+"\\"+env.get("TestDatabase")+"\\Element1",
"SourceAttribute": {
"AttributeProperties": {
"Name": "CustomSetNoValue",
"Template": "",
"Description": "",
"ValueType": "AFEnumerationValue",
"ConfigString": "",
"IsAnalysisInput": false,
"IsAnalysisOutput": false,
"SimpleConfig": "",
"IsDataReferenceDefinedByTemplate": false,
"DataReferencePlugIn": "",
"DefaultUOM": "",
"IsConfigurationItem": "True",
"IsManualDataEntry": "False",
"IsHidden": "False",
"IsExcluded": "False",
"ID": "dd2523fd-f21e-462c-9f6e-636a5de37ce5",
"UniqueID": "dd2523fd-f21e-462c-9f6e-636a5de37ce5",
"TypeQualifier": "EnumSet1",
"IsTypeQualifierGlobal": false,
"Categories": [],
"Value": {
"IsAnythingValue": false,
"T": "AFEnumerationValue",
"V": null,
"Timestamp": 0,
"Q": false,
"S": false
}
},
"Attributes": null
}
}
]
};
return msg;
Example Flow
[
{
"id": "57fb1f5d7e3df0e8",
"type": "AF Attribute Create",
"z": "fbcc6f6461481998",
"name": "",
"x": 150,
"y": 220,
"wires": [
[]
]
}
]