- Vue d'ensemble (Overview)
- UiPath CLI
- Extension Azure DevOps
- Plugin Jenkins
Exécuter une tâche dans Orchestrator
Prerequisites:
- Créez un processus dans Orchestrator.
- Exécutez le fichier CLI
exe(pour Windows) oudll(pour Linux). - Add the required Orchestrator API access application scopes.
Pour exécuter une tâche dans Orchestrator, procédez comme suit :
-
Exécutez la tâche
jobà l'aide deuipcli job. Vous pouvez maintenant voir une liste des sous-tâches disponibles. -
Spécifiez les paramètres requis et exécutez la sous-tâche
run.Voir la liste des paramètres ci-dessous.
Paramètre Description -i, or--input_path(Required only if the entry point of the workflow has input parameters)Le chemin d'accès complet au fichier d'entrée JSON correspondant au processus que vous souhaitez exécuter. Exemple de format de fichier JSON :
{ "StringArgument_In": "MyConfigurationValue", "IntArgument_In": 1, "DictionaryArgument_In": { "Key1": "Value1", "Key2": "Value2" } }{ "StringArgument_In": "MyConfigurationValue", "IntArgument_In": 1, "DictionaryArgument_In": { "Key1": "Value1", "Key2": "Value2" } }{ "StringArgument_In": "MyConfigurationValue", "IntArgument_In": 1, "DictionaryArgument_In": { "Key1": "Value1", "Key2": "Value2" } }-Pou--priorityLa priorité avec laquelle vous souhaitez exécuter la tâche :- Faible.- Normal (par défaut).- Élevé. -rou--robotsUne liste de noms de robots spécifiques, séparés par des virgules. -jou--jobscountLe nombre de fois que vous souhaitez exécuter le processus. Le nombre d'exécutions par défaut du processus est de un. -Uou--userThe name of the user. This should be a machine user, not an Orchestrator user. For local users, the format is MachineName\UserName. -Mou--machineLe nom de la machine sur laquelle vous souhaitez exécuter le processus. -Rou--result_pathChemin d'accès complet à un fichier JSON ou à un dossier dans lequel vous souhaitez stocker les résultats de la tâche. Les résultats sont renvoyés sous forme de fichiers JSON. -Wou--timeoutDélai d’expiration des exécutions de tâches (secondes). La valeur par défaut est de 1 800 secondes. -fou--fail_when_job_failsThe command fails when one job fails, The default for this is True. -wou--waitThe command waits for the job to finish. The default for this is True. -bou--job_type(pour les dossiers modernes uniquement)Type de runtime de la tâche. Vous pouvez choisir :- Unattended-NonProduction.-u, or--username(Required if you use Basic Authentication, through a username and a password)Le nom d'utilisateur utilisé pour l'authentification auprès d'Orchestrator. Vous devez l'associer au mot de passe correspondant. -p, or--password(Required if you use Basic Authentication, through a username and a password)Le mot de passe utilisé pour l'authentification auprès d'Orchestrator. Vous devez l'associer au nom d'utilisateur correspondant. -t, or--token(Required if you use token-based authentication)The OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client ID. -a, or--accountName(Required if you use token-based authentication)The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID. -Aou--accountForAppThe Orchestrator CloudRPA account name (organization name). You must pair it with the Application ID, Application Secret, and Application scope for external application. -I, or--applicationId(Required if you use external application authentication)The external Application ID. You must pair it with the Application Account, Application Secret, and Application scope. -S, or--applicationSecret(Required if you use external application authentication)The external Application Secret. You must pair it with the Application Account, Application ID, and Application scope. --applicationScope(Required if you use external application authentication)The list of application scopes, separated by single spaces. You must pair it with the Application Account, Application ID, and Application Secret for external application. -oou--organizationUnitLe nom du dossier Orchestrator (unité d'organisation). Pour saisir des sous-dossiers, assurez-vous de saisir à la fois le nom du dossier parent et le nom du sous-dossier. Par exemple, utilisez
AccountingTeam\TeamJohn.-l,--languageLa langue d'Orchestrator.
-y,--disableTelemetryDésactiver les données de télémétrie --traceLevelAfficher la trace des événements. --identityUrl(Required only for PaaS deployments)L'URL de votre serveur d'identité.
--helpAffiche les paramètres et des exemples de cette commande.
--versionAffiche les informations de version.
Process Name (pos.0)(Required)Le nom du processus que vous souhaitez exécuter. Orchestrator URL (pos.1)(Required)Il s'agit de l'URL de votre Orchestrator. Orchestrator Tenant (pos.2)-
(Required) for SaaP deployments.
-
(Optional) for PaaS deployments.
Le locataire de l'instance d'Orchestrator, où vous souhaitez exécuter des processus. -
Utilisation :
job run <process_name> <orchestrator_url> <orchestrator_tenant> [-i <input_path>] [-j <jobscount>] [-R <result_path>] [-P <priority>] [-r <robots>] [-f <do_not_fail_when_job_fails>] [-W <timeout>] [-w <do_not_wait>] [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder_organization_unit>] [-l <language>]
job run <process_name> <orchestrator_url> <orchestrator_tenant> [-i <input_path>] [-j <jobscount>] [-R <result_path>] [-P <priority>] [-r <robots>] [-f <do_not_fail_when_job_fails>] [-W <timeout>] [-w <do_not_wait>] [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder_organization_unit>] [-l <language>]
Exemples :
job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P Lowjob run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P Normal -o MyFolderjob run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P High -o MyFolderjob run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -f false -W 0job run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -P High -j 3 -w falsejob run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -P Low -r robotName -R C:\Tempjob run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -r robotName -R C:\Temp\status.jsonjob run ProcessName "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read" -r robotName -R C:\Temp\status.json