Script Function: Returns the run number (RunIDAbréviation du numéro d'identification unique. Il s'agit plus précisément d'un nombre qui identifie clairement l'exécution d'une Tâche. Le RunID peut comporter entre 7 et 10 caractères . Ils sont attribués par le composant Automation Engine.) of the own object
Syntax
SYS_ACT_ME_NR()
Return code |
---|
Run number of the object in which this scriptEgalement un type d'objet distinct dans l'Automation Engine. function is called. |
Comments
In the case that the task is restarted with the reference RunID, this script function supplies this reference RunID instead of the RunID of the execution. Always use SYS_ACT_RESTART_ME_NR to obtain the running number of the reactivated object.
Example
In this example, the RunID of a task is used in order to obtain parentUn objet peut être activé de différentes façons. L'initiateur de l'activation s'appelle Tâche de niveau supérieur (parent). (voir aussi Enfant, Enfants) information. If the task was started by a user, this user's name is printed in the activation report. If it was started by a task, the name of this task is printed.
:SET &RUNNR# = SYS_ACT_ME_NR()
:SET &PNAME# = GET_PARENT_NAME(, &RUNNR#, "ACT")
:PRINT "Parent-Name: &PNAME#"
See also:
Script element | Description |
---|---|
Returns the name of the own object |
|
Returns the object type of the own object |
Script Elements - Activation Data
Sample Collection:
Retrieving Error Message and Number
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function