![]() ![]() |
Reference Type: Supported, Category: TaskMan, ICR#: 10063
The $$S^%ZTLOAD extrinsic function is used within a task to determine if the task has been asked to stop. Using the $$S^%ZTLOAD() function in longer tasks is highly recommended. Tasks should test $$S^%ZTLOAD to check if the user who queued the task has requested that the task be stopped. If the task has been asked to stop, it should set the local variable ZTSTOP to 1 before quitting. This alerts the Submanager to set the task's status to STOPPED instead of FINISHED, to give the user feedback that the task has obeyed their request.
You can use the optional message parameter to inform the user of the progress of a job. It is displayed when the task is listed by one of the many options that list tasks.
$$S^%ZTLOAD([message])
message: |
(optional) Allows you to leave a message for the creator of the TaskMan task. |
returns: |
Returns:
|