//By Apps
def lock() {
if (lockState != "locked") {
- lockLatestValue = lockState
+ //lockLatestValue = lockState
+ lockLatestValue = "locked"
lockState = "locked"
currentLock = "locked"
locks[0].lock()
def lock(LinkedHashMap metaData) {
if (lockState != "locked") {
def task = timers.runAfter(metaData["delay"]) {
- lockLatestValue = lockState
+ //lockLatestValue = lockState
+ lockLatestValue = "locked"
lockState = "locked"
currentLock = "locked"
locks[0].lock()
def unlock() {
if (lockState != "unlocked") {
- lockLatestValue = lockState
+ //lockLatestValue = lockState
+ lockLatestValue = "unlocked"
lockState = "unlocked"
currentLock = "unlocked"
locks[0].unlock()
def unlock(LinkedHashMap metaData) {
if (lockState != "unlocked") {
def task = timers.runAfter(metaData["delay"]) {
- lockLatestValue = lockState
+ //lockLatestValue = lockState
+ lockLatestValue = "unlocked"
lockState = "unlocked"
currentLock = "unlocked"
locks[0].unlock()