//Create a global logger object for methods
def log = new Logger()
//Create a global variable for Functions in Subscribe method
-def functionList = []
+def functionList = new ArrayList(20)
//Create a global variable for Objects in Subscribe method
-def objectList = []
+def objectList = new ArrayList(20)
//Create a global variable for Events in Subscribe method
-def eventList = []
+def eventList = new ArrayList(20)
//Create a global variable for settings
def settings
//Zip code
def init = Verify.getBoolean()
if (init) {
this.lockState = "locked"
- this.lockLatestValue = "locked"
+ this.currentLock = "locked"
+ this.lockLatestValue = "locked"
} else {
this.lockState = "unlocked"
- this.lockLatestValue = "unlocked"
+ this.currentLock = "unlocked"
+ this.lockLatestValue = "unlocked"
}
locks.add(new Lock(sendEvent,id, label, displayName, this.lockState, this.lockLatestValue))
}