Acquire, Release (statements)

About this task

Note: In the Basic Control Engine, when an event occurs, the script is started in parallel. If another event triggers the same script before the script ends, two scripts will be running in parallel. The Acquire and Release routines can be used to modify this behavior. Two options are available.

Procedure

  1. Serialize the processing. In this case, the second instance of the script waits until the first is complete and then begins execution. This is accomplished by placing an acquire statement at the start of the script.
  2. Skip processing. In this case, the second instance of the script exits without performing any processing. The example in Acquire (FUNCTION) illustrated this.