Triggers: Difference between revisions

43 bytes added ,  20 September 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 12: Line 12:
== Event that initiates execution of the trigger ==
== Event that initiates execution of the trigger ==
The launch of the trigger is defined by two parameters:
The launch of the trigger is defined by two parameters:
; Act
; Action
: is any user to perform a recording operation. (Huh?)
: is any action preformed by the user on an entry.
; Phase actions
; Phase of an action
: specify a precise moment of the trigger for each type of action available to its phase.
: a subdivision, or specific step, of an action. A trigger can be fired during a phase of an action. Each action type can have a different set of phases.


=== Execution of the script ===
=== Script execution ===
The phase in which the trigger is triggered also determines how the script will be executed — synchronously or asynchronously.
The phase that activates the trigger also defines how the trigger will be executed — synchronously or asynchronously.


; Simultaneous script execution
; Synchronous script execution
: The application suspends user interaction for the duration of the script. It is not recommended to perform time-consuming operations in these scripts.
: implies the application suspends user interaction and executes the script. It is not recommended to perform time-consuming operations in this case.


; Asynchronous script execution
; Asynchronous script execution
: The script runs in the background; the application does not stop user interaction. Usually, scripts are executed synchronously, in the last phases of the action.
: results in the script running in the background; user interaction is not suspended. Usually, asynchronous scripts are used in the last phases of the action.


== Security ==
== Security ==