OpenWGA 7.0 - TMLScript reference

JobContext
Property :

cancelled

On object JobContext
Usage Returns if this job has been cancelled by an administrator
Description Use this property instead of (or additionally to) breakIfCancelled() to implement a cancelable job, but to determine yourself what should happen in the case of a cancellation. This property checks only if the job was cancels and leaves the rest up to you.
Return value Boolean
Allowed in script types
  • TMLScript tasks in jobs