1 def events = [1,2,3,4,5,6,7]
2 def list = events.permutations()
3 int count = Verify.getInt(0,list.size()-1)
4 println "COUNT: " + count
9 appObject.setValue([name: "Touched", value: "Touched", deviceId: 0, descriptionText: "",
10 displayed: true, linkText: "", isStateChange: false, unit: "", data: []])
14 lockObject.setValue([name: "lock0", value: "locked", deviceId: 0, descriptionText: "",
15 displayed: true, linkText: "", isStateChange: false, unit: "", data: []])
19 lockObject.setValue([name: "lock0", value: "unlocked", deviceId: 0, descriptionText: "",
20 displayed: true, linkText: "", isStateChange: false, unit: "", data: []])
24 contactObject.setValue([name: "contact0", value: "open", deviceId: 0, descriptionText: "",
25 displayed: true, linkText: "", isStateChange: false, unit: "", data: []])
29 contactObject.setValue([name: "contact0", value: "closed", deviceId: 0, descriptionText: "",
30 displayed: true, linkText: "", isStateChange: false, unit: "", data: []])
34 switchObject.setValue([name: "switch0", value: "on", deviceId: 0, descriptionText: "",
35 displayed: true, linkText: "", isStateChange: false, unit: "", data: []])
39 switchObject.setValue([name: "switch0", value: "off", deviceId: 0, descriptionText: "",
40 displayed: true, linkText: "", isStateChange: false, unit: "", data: []])