Skip to main content

af analysis af analysis


AF Analysis Createaf-analysis-create


Input​

InputsTypeMandatoryDescription
CheckInLimitintN
PISystemstringY
DatabasestringY
ElementPathstringY
AnalysesarrayY
   PISystemstringY
   DatabasestringY
   ElementPathstringY
   NamestringY
   DescriptionstringY
   TemplatestringY
   Categoriesarray of stringsN
   AnalysisRulePlugInstringN
   Analysis RulestringN
   ConfigStringstringN
   VariableMappingsstringN
   ChildRulesJSRule arrayN
      ConfigStringstringN
      PlugInstringN
   StatusstringN
   TimeRulePlugInstringN
   TimeRuleConfigStringstringN
   TimeRulestringN
   OutputTimestringN
   ExtendedPropertiesExtendedProperties arrayN
      KeystringN
      ValueobjectN

payload

Output​

OutputsTypeDescriptionExample
array[1]arrayarray[1]
   0object0: object
   ActionstringAction: ""Created""
   ItemstringItem: ""Analysis""
   PrimaryPathstringPrimaryPath: ""\Dev-AF1\Element1""
   NamestringName: ""Analysis1""

Example Input Payload​

msg.payload = {
"Analyses": [
{
"ElementPath": "Element1", (Element must exist)
"Name": "Analysis1", (Name of the analysis)
"Description": "create",
"Template": "",
"Categories": [],
"AnalysisRulePlugIn": "PerformanceEquation",
"AnalysisRule": "PerformanceEquation",
"ConfigString": "",
"VariableMappings": [],
"ChildRules": [],
"DisplayString": "",
"InputAttributes": [],
"OutputAttributes": [],
"Status": "Enabled",
"TimeRulePlugIn": "Natural",
"TimeRuleConfigString": "",
"TimeRule": "Natural",
"OutputTime": "",
"ExtendedProperties": []
}
],
"PISystem": env.get("TestSystem"), ("TestSystem" is global variable for Input; eg:AFServer)
"Database": env.get("TestDatabase"), ("TestDatabase" is global variable for Input; eg:AFDatabase)
"ElementPath": "Element1" (name of the Element)
};


return msg;

Example Flow​

[
{
"id": "f476f7fe038a2849",
"type": "AF-Analysis-Create",
"z": "c4fc53dc96751169",
"name": "",
"x": 390,
"y": 380,
"wires": [
[]
]
}
]