5.11. CompletionScript (element)

<completionScript> ‐ A schedule completion script

5.11.1. Attributes

NameTypeDefaults
idIDNone (required)

5.11.2. Description

This element is used to contain a script associated with the completion of a schedule. It consists of a list of commands made of an action and a target (see Section 2.4). These commands are automatically triggered when the schedule terminates (reaches its end time).

5.11.3. Expected child

This element expects a list of commands as child nodes.

5.11.4. Example

In the example below, the completion script contains one command. The action associated with this command sends a message labeled start. Its target is the node(s) named dropping the ball.

<schedule begin="100" dur="200" repeatCount="2" 
        mode="sinus-periodic" fill="remove">
  <completionScript>
    <command>
      <action>
        <send_message value="start" />
          <target type="multiple_nodes" value="#dropping the ball"  />
      </action>
    </command>
  </completionScript>
</schedule>