equal
deleted
inserted
replaced
|
1 <script xmlns="http://www.nokia.com/ns/cep/script/1.0/" xmlns:cep="http://www.nokia.com/ns/cep/1.0/"> |
|
2 <!-- If alarm is not active, nothing needs to be done --> |
|
3 <if> |
|
4 <equals> |
|
5 <contextRef source='Alarm' type='Status.Active' value='false'/> |
|
6 </equals> |
|
7 <actions> |
|
8 <!-- Do nothing --> |
|
9 </actions> |
|
10 </if> |
|
11 |
|
12 <!-- Silence alarm if 'silence' command is received --> |
|
13 <elseIf> |
|
14 <!-- ...and we got a new stop command --> |
|
15 <contextUpdated> |
|
16 <contextRef source='AlarmUI' type='Command' value='Silence'/> |
|
17 </contextUpdated> |
|
18 <actions> |
|
19 <!-- silence the alarm --> |
|
20 <AlarmUI.Silence/> |
|
21 </actions> |
|
22 </elseIf> |
|
23 </script> |