Event handler import doesn't work
-
Hi,
I have encountered a problem with configuration import.
Event handler import fails:
Event handler configuration:
Event handlers json code:
"eventHandlers":[
{
"xid":"EH_S1.01_LOCREM_CHANGED",
"activeAction":"SCRIPT_VALUE",
"inactiveAction":"NONE",
"activeScript":"if(locrem.value){\n return sp.value*10;\n}else{\n return 65535;\n}",
"handlerType":"SET_POINT",
"targetPointId":"DP_S1.01_FORCE_TEMP",
"alias":"",
"disabled":false,
"scriptPermissions":{
"scriptDataPointReadPermission":"superadmin",
"scriptDataPointSetPermission":"superadmin",
"scriptDataSourcePermission":"superadmin"
},
"eventTypes":[
{
"sourceType":"DATA_POINT",
"dataPointXID":"DP_S1.01_LOCAL_REMOTE",
"detectorXID":"ED_S1.01_LOCREM_CHANGED"
}
],
"additionalContext":[
{
"contextKey":"locrem",
"dataPointXid":"DP_S1.01_LOCAL_REMOTE"
},
{
"contextKey":"sp",
"dataPointXid":"DP_S1.01_SETPOINT"
}
]
}
...I use mango enterprise with core 3.4.5.
Can anyone confirm the problem?
-
Hi BlueSoft, welcome to the forum!
Yes, I can confirm the problem. I found the cause and fixed it, which will be in the next 3.5 release. Thanks for bringing this to our attention! The problem is that the active / inactive scripts are not being set on the import, which means you cannot create a new event handler that is using scripts or modify an existing script through the configuration import / export.