Skip to main content

AF Attribute AF Attribute


AF Attribute CreateAF-Attribute-Create


Input​

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

Output​

OutputsTypeDescriptionExample
array[4]arrayarray[1]
   0objectobject
      Propertiesobjectobject
         Namestring""CustomSetNoValue""
         PrimaryPathstring""\Dev-AF1\NodeTestCaseSource\Element1""
         Templatestring""""
         Actionstring""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": [
[]
]
}
]