Java

The CallAPIInterface de programmation pouvant être exécutée en direct ou à partir d'un autre programme, afin d'exécuter un Script dans le système AE. can be used to process scripts in the AE system from your own Java programs.

This requires the class UCCALL3 to be imported from the packageUn package est une instance (version, révision, balise, …) de votre application définissant le contenu à déployer. Il vous permet de décider si vous souhaitez déployer toute l'application ou uniquement certains composants spécifiés. com.uc4.uccall3.

The delivery directory contains sample programs that provide a detailed description of how a scriptEgalement un type d'objet distinct dans l'Automation Engine. activation can be implemented.

Detailed information about the Java class is provided in the included documentation.

General

Scripts are always activated with the following steps:

  1. Log on to the AE system.
  2. Transfer the script to the AE system.
  3. Log off from the AE system.

You can log on to several AE systems at the same time and process various scripts. In this case, a Dialog license is used for each connection.

Methods

In your program, you can use the functions listed below.

Description

Data type of return code

Function

Logging on to the AE system

boolean

logon()
logon
(clientEnvironnement indépendant pour la création et l'exécution d'objets dans un système AE. Le nom d'un client est un nombre de quatre chiffres à saisir lors de la connexion d'un utilisateur au système AE. Les utilisateurs et leurs droits y sont aussi définis.Egalement un type d'objet distinct dans l'Automation Engine., user, [department, [password]])
logon
(specifications)

Data type of client: int
Data type of user: java.lang.String
Data type of department: java.lang.String
Data type of password: java.lang.String
Data type of specifications: java.util.Properties

The Java class "Properties" is used for specifications to be made. The following parameters can be configured:

"system" - name of the AE system to which a connection should be established
"language" - message language
"timeout" - period in seconds during which the CallAPI waits for an AE system response
"client" - client
"user" - user
"dept" - department
"pass" - password
"cpn_host" - DNS name or TCP/IP address of the computer on which the communication process runs
"cpn_port" - port number of the communication process

Retrieving a connection error

java.lang.String

getConnectionError()

Specifying INI file

void

setConfigurationFile(path and name of INI file)

Data type of script: java.lang.String

Activating a script

java.lang.String

activateScript(script)

Data type of script: java.lang.String

Retrieving the 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 last activated script

int

getRunNumber()

Logging off the AE system

void

logoff()

See also:

About the CallAPI