Script Function: Supplies the department of the user who has started the task.
Syntax
SYS_USER_DEP()
Return code |
---|
Department of the user. |
Comments
This scriptEgalement un type d'objet distinct dans l'Automation Engine. function determines the department of the user who has started the task (for example, "AE" in "SMITH/AE").
Note that you can start tasks manually or by using the script statement "ACTIVATE_UC_OBJECT" via WorkflowLes workflows sont utilisés pour effectuer des déploiements physiques. Un workflow décrit toutes les étapes nécessaires au déploiement de votre application. Votre application étant composée de différents éléments, le niveau le plus élevé du workflow (workflow d'application) représente l'architecture de votre application, et les workflows de composants sont utilisés pour déployer chacun des composants. Vous pouvez définir votre workflow de composants rapidement grâce à des actions prédéfinies. and ScheduleDémarre des objets activables à intervalles périodiques. Egalement un type d'objet distinct dans l'Automation Engine. objects. If the task in which "SYS_USER_DEP" is called belongs to a Schedule object, this script functions supplies the department of the user who has started the Schedule object.
The user can also be identified in the Statistical Overview .
Example
The following example uses this script function in order to retrieve the department that has been used to log and writes the result to the activation report.
:SET &LOGDEP# = SYS_USER_DEP()
:PRINT "Login information: The user department is &LOGDEP#."
See also:
Script element | Description |
---|---|
Checks whether a user is logged on to AE with a UserInterface. |
|
SYS_USER_LANGUAGE |
Supplies the language in which the Server generates the log files. |
SYS_USER_LNAME |
Supplies the first and last name of the user who has started the task. |
SYS_USER_NAME | Supplies the name of the user who has started the task. |
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by function