- Überblick
- UiPath-CLI
- Azure DevOps-Erweiterung
- Jenkins-Plugin
Prerequisites:
- Erstellen Sie einen Prozess im Orchestrator.
- Führen Sie die CLI-Datei
exe(für Windows) oderdll(für Linux) aus. - Add the required Orchestrator API access application scopes.
Um einen Auftrag innerhalb des Orchestrators auszuführen, führen Sie die folgenden Schritte aus:
-
Führen Sie die
job-Aufgabe mituipcli jobaus. Jetzt sehen Sie eine Liste der verfügbaren Unteraufgaben. -
Geben Sie die erforderlichen Parameter an und führen Sie die Unteraufgabe
runaus.Siehe die Liste der Parameter unten.
Parameter Beschreibung -i, or--input_path(Required only if the entry point of the workflow has input parameters)Der vollständige Pfad zur JSON-Eingabedatei, die dem Prozess entspricht, den Sie ausführen möchten. Beispiel für ein JSON-Dateiformat:
{ "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" } }-Poder--priorityDie Priorität, mit der Sie den Auftrag ausführen möchten:- Niedrig.- Normal (Standard).- Hoch. -roder--robotsEine durch Kommas getrennte Liste bestimmter Roboternamen. -joder--jobscountDie Häufigkeit, mit der Sie den Prozess ausführen möchten. Die Standardanzahl der Prozessausführungen ist eins. -Uoder--userThe name of the user. This should be a machine user, not an Orchestrator user. For local users, the format is MachineName\UserName. -Moder--machineDer Name der Maschine, auf der Sie den Prozess ausführen möchten. -Roder--result_pathDer vollständige Pfad zu einer JSON-Datei oder zu einem Ordner, in dem Sie die Ergebnisse des Auftrags speichern möchten. Die Ergebnisse werden als JSON-Dateien zurückgegeben. -Woder--timeoutDas Timeout für Auftragsausführungen (Sekunden). Der Standardwert ist 1800 Sekunden. -foder--fail_when_job_failsThe command fails when one job fails, The default for this is True. -woder--waitThe command waits for the job to finish. The default for this is True. -boder--job_type(nur für moderne Ordner)Der Laufzeittyp für den Auftrag. Sie können wählen:- Unattended-NonProduction.-u, or--username(Required if you use Basic Authentication, through a username and a password)Der Benutzername, der für die Authentifizierung bei Orchestrator verwendet wird. Sie müssen es mit dem entsprechenden Kennwort koppeln. -p, or--password(Required if you use Basic Authentication, through a username and a password)Das Kennwort, das für die Authentifizierung beim Orchestrator verwendet wird. Sie müssen es mit dem entsprechenden Benutzernamen koppeln. -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. -Aoder--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. -ooder--organizationUnitDer Name des Orchestrator-Ordners (Organisationseinheit). Um Unterordner einzugeben, geben Sie sowohl den Namen des übergeordneten Ordners als auch den Namen des Unterordners ein. Zum Beispiel
AccountingTeam\TeamJohn.-l,--languageDie Orchestrator-Sprache.
-y,--disableTelemetryDeaktivieren der Telemetriedaten. --traceLevelZeigt die Ablaufverfolgung der Ereignisse an. --identityUrl(Required only for PaaS deployments)Die URL Ihres Identitätsservers.
--helpZeigt die Parameter und Beispiele für diesen Befehl an.
--versionZeigt Versionsinformationen an.
Process Name (pos.0)(Required)Der Name des Prozesses, den Sie ausführen möchten. Orchestrator URL (pos.1)(Required)Die URL der Orchestrator-Instanz. Orchestrator Tenant (pos.2)-
(Required) for SaaP deployments.
-
(Optional) for PaaS deployments.
Der Mandant der Orchestrator-Instanz, in der Sie Prozesse ausführen möchten. -
Verwendung:
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>]
Beispiele:
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