Task Level (Magic xpa 4.x)
Every task goes through two main phases known as Task Prefix and Task Suffix.
As the task is opened it goes through the Task Prefix phase. If a Task Prefix logic unit is defined, the logic unit will be executed at this point. You can define all the logic required to prepare the task for its further execution in the Task Prefix logic unit.
Important:
|
Various internal initializations such as: Opening defined I/O devices, namely files; opening data sources for fetching the requested data, and setting the range of the requested view, are performed before the Task Prefix logic unit is executed. This means that at this stage you cannot modify the I/O name or delete the file that is opened by the current task. Such procedures must be conducted in a preliminary executed task.
|
As the task is closed, it goes through the Task Suffix phase. If a Task Suffix logic unit is defined, the logic unit will be executed at this point. You can define all the logic required to conclude the execution of the task In the Task Suffix logic unit.
Important:
|
Modules that were initialized internally before the Task Prefix are closed after the execution of the Task Suffix logic unit. Having the same limitation as the Task Prefix, you cannot modify the I/O name or delete the file that is opened by the current task in the Task Suffix phase.
|