alarmui/group/alarmui_silence.rul
branchRCL_3
changeset 30 d68a4b5d5885
equal deleted inserted replaced
27:55d60436f00b 30:d68a4b5d5885
       
     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>