af analysis
af-analysis-update
Input
| Inputs | Type | Mandatory | Description |
|---|---|---|---|
| CheckInLimit | int | N | |
| PISystem | string | Y | |
| Database | string | Y | |
| ElementPath | string | Y | |
| Analyses | array | Y | |
| PISystem | string | Y | |
| Database | string | Y | |
| ElementPath | string | Y | |
| Name | string | Y | |
| Description | string | Y | |
| Template | string | Y | |
| Categories | array of strings | N | |
| AnalysisRulePlugIn | string | N | |
| Analysis Rule | string | N | |
| ConfigString | string | N | |
| VariableMappings | string | N | |
| ChildRules | JSRule array | N | |
| ConfigString | string | N | |
| PlugIn | string | N | |
| Status | string | N | |
| TimeRulePlugIn | string | N | |
| TimeRuleConfigString | string | N | |
| TimeRule | string | N | |
| OutputTime | string | N | |
| ExtendedProperties | ExtendedProperties array | N | |
| Key | string | N | |
| Value | object | N |
payload
Output
| Outputs | Type | Description | Example |
|---|---|---|---|
| payload | array | ||
| Action | string | ""Synced"" | |
| Item | string | ""Analysis"" | |
| PrimaryPath | string | ""\NodeADSTestSystem\Test1"" | |
| Name | string | ""Analysis1"" |
payload
Example Payload
msg.payload = {
"Analyses": [
{
"ElementPath":"Element1",
"Name": "Analysis1",
"Description":"test", (changes the description from 'create' to 'test')
"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"),
"Database": env.get("TestDatabase"),
"ElementPath":"Element1"
};
return msg;
Example Flow
[
{
"id": "b1ec69b6c84896a8",
"type": "AF-Analysis-Update",
"z": "c4fc53dc96751169",
"name": "",
"x": 430,
"y": 180,
"wires": [
[]
]
}
]