Execution Levels (Magic xpa 4.x)
There are 6 levels in the execution of a Magic xpa task:
-
Task level – From the beginning of the task to its termination.
-
Group level – From the beginning of a group of records to the end of the group. This level is optional and appears only when the developer needs a group process in a Batch task.
-
Record level – From the fetching of a record to the end of manipulation and saving.
-
Variable level – This logic unit lets you select a variable from the Variable list that you want to associate with a specific control type. If you select a variable, the Variable Expression property is disabled. For the specified control, you can place the operations that the engine executes. The Variable handler is for Online and Rich Client tasks only.
-
Control level – From the time a control (field on the screen) is accessed until the control is exited. This level is optional and appears only when the developer needs a Control level in an Online, Rich Client or Browser task.
-
User-Defined Event level – A non-editable field that lets you zoom to the Event Selection dialog box and displays the selected event. When no event is selected the field is blank.
The Task,Group, Record, and Control levels are nested within one another, so that the Control level is part of the Record level, which is part of the Group level, which is part of the overall Task level.
The Group, Record and Control levels are cyclical and may be executed several times (for multiple groups, records, and controls).
The following table describes Magic xpa's basic logic units and their triggers.
|
|
|
Task Prefix
|
A task execution starts
|
Once
|
Task Suffix
|
A task execution ends
|
Once
|
Record Prefix
|
A record is fetched
|
1 per record
|
Record Suffix
|
A record manipulation ends
|
0 – 2 per record*
|
Control Prefix
|
An end user parks on a control
|
–
|
Control Verification
|
An end user leaves a control, before the Control Suffix
|
–
|
Control Suffix
|
An end user leaves a control
|
–
|
Variable Change
|
A variable value is changed
|
–
|
* In Delete mode, the Record Suffix is executed twice.
User-Defined Events
User-Defined Functions