- Vue d'ensemble (Overview)
- Démarrer
- Concepts
- Utilisation de la UiPath CLI
- Guides pratiques
- Revenus CI/CD
- Référence de commande
- Vue d'ensemble (Overview)
- Codes de sortie
- Options globales
- agent codé uip
- encodeur UIP
- uip ancrage dans le contexte
- UiPath Docsai
- Fonction UiP
- garde-fous UiP
- configuration llm uip
- uip llm-passerelle
- uip maestro authoring
- uip maestro registry
- uip model-hub
- Tâches (Jobs)
- Dossiers
- Processus
- process-roi
- Paquets
- Machines
- Utilisateurs
- Rôles
- Licences
- Flux
- Pièces jointes (Attachments)
- Sessions
- Calendriers
- magasins d'informations d’identification
- journaux-audit
- paramètres
- Actifs
- Compartiments
- Compartiment-fichiers
- Bibliothèques
- Files d'attente (Queues)
- queue-roi
- éléments de la file d'attente
- Déclencheurs (Triggers)
- Webhooks
- activities find
- activities get-default-xaml
- Analyser
- analyzer-rules list
- Construire
- Nettoyage
- data-fabric-entities install
- data-fabric-entities list
- files diff
- Get-Library-Object-Repository
- Récupérer le référentiel d'objets
- Init
- instances list
- Créer un package
- packages inspect
- packages install
- packages versions
- Publier
- Distant
- restore
- exécuter, déboguer et amp; Exécution
- paramètres
- studio start
- templates search
- test-data add-entity
- test-data add-queue
- test-data add-variation
- TM
- UIA
- Valider
- workflow-examples get
- workflow-examples list
- tâches UIP
- pièce jointe
- Champ personnalisé
- defects
- Exécutions
- export-jobs
- migration
- Libellé Objet
- Créer un package
- scénarios-perf
- groupes-de-charge-scénarios-perf
- données d’exécution de perf-scenario
- rapport de scénarios de performances
- Projet
- project-permissions
- prompts
- Rapport
- Prérequis
- Résultat
- Exécuter
- schedules
- testcaselog
- Cas de test
- Ensembles de tests
- Journal des étapes de test
- Utilisateur (User)
- Attendre
- Traçages UIP
- Commentaires sur les traces UIP
- Migration
- Référence et assistance
exécution du workflow d’API uip
Syntaxe et options de `uip api-workflow run`, qui exécute un fichier JSON de workflow d'API localement à l'aide de l'exécuteur de workflow sans serveur fourni.
uip api-workflow run exécute un fichier JSON de workflow d'API localement à l'aide de l'exécuteur de workflow sans serveur fourni. Les arguments d’entrée sont transmis au format JSON. Par défaut, l'exécuteur charge les informations d'identification UiPath à partir de la session uip login afin que le workflow puisse atteindre les connecteurs et les services basés sur le cloud; transmettez --no-auth pour ignorer le chargement des informations d’identification et exécuter en mode local uniquement.
Synthèse
uip api-workflow run <file> [options]
uip api-workflow run <file> [options]
<file>: le chemin d'accès au fichier JSON du workflow.
Options
| Drapeau | Description |
|---|---|
-i, --input-arguments <json> | Arguments d'entrée sous la forme d'une chaîne JSON, par exemple '{"name": "World"}'. |
--input-file <name=path> | Chargez un fichier local et transmettez-le comme entrée de fichier (JobAttachment) <name>. Répétable pour plusieurs fichiers. Nécessite une session connectée. |
--output-dir <dir> | Téléchargez chaque référence de fichier (JobAttachment) dans la sortie du workflow dans <dir>; chaque référence téléchargée obtient un LocalPath. Nécessite une session connectée. |
--folder-key <guid> | Clé de dossier Orchestrator pour les pièces jointes créées par cette exécution (entrées et fichiers téléchargés et écrits par les activités Fichier vers Base64 / Base64 vers Fichier). |
--no-auth | Skip credential loading. The workflow runs in a local-only mode with no access to connectors or cloud-backed services. Refer to Local-only mode. |
Exemples
# Run with an inline input object
uip api-workflow run ./workflow.json \
--input-arguments '{"name":"World"}'
# Run without loading credentials (offline / local-only)
uip api-workflow run ./workflow.json --no-auth
# Extract a single output field
uip api-workflow run ./workflow.json \
--input-arguments '{"name":"World"}' \
--output-filter 'greeting'
# Upload a local file as a file (JobAttachment) input, and download any file
# outputs the workflow produces
uip api-workflow run ./workflow.json \
--input-file document=./invoice.pdf \
--output-dir ./out
# Run with an inline input object
uip api-workflow run ./workflow.json \
--input-arguments '{"name":"World"}'
# Run without loading credentials (offline / local-only)
uip api-workflow run ./workflow.json --no-auth
# Extract a single output field
uip api-workflow run ./workflow.json \
--input-arguments '{"name":"World"}' \
--output-filter 'greeting'
# Upload a local file as a file (JobAttachment) input, and download any file
# outputs the workflow produces
uip api-workflow run ./workflow.json \
--input-file document=./invoice.pdf \
--output-dir ./out
Local-only mode
With --no-auth, the command refuses to run when the run needs Orchestrator blob storage:
--input-fileis passed.--output-diris passed.- The workflow uses the File to Base64 or Base64 to File activities.
Each refusal returns Result: "Failure" with Instructions to run uip login and drop --no-auth.
Format des données (--sortie json)
Data is the workflow's own output, with field names kept exactly as the workflow produces them:
{
"Code": "WorkflowRun",
"Data": {
"greeting": "Hello, World!"
}
}
{
"Code": "WorkflowRun",
"Data": {
"greeting": "Hello, World!"
}
}
A workflow that produces no output returns Data: { "Message": "(no output)" }.
When --output-dir is set, each file (JobAttachment) reference in the output is downloaded and gains a LocalPath:
{
"Code": "WorkflowRun",
"Data": {
"encoded": {
"ID": "6f1c0d2e-8a1b-4c3d-9e0f-123456789abc",
"FullName": "invoice.base64",
"MimeType": "text/plain",
"LocalPath": "/abs/path/out/invoice.base64"
}
}
}
{
"Code": "WorkflowRun",
"Data": {
"encoded": {
"ID": "6f1c0d2e-8a1b-4c3d-9e0f-123456789abc",
"FullName": "invoice.base64",
"MimeType": "text/plain",
"LocalPath": "/abs/path/out/invoice.base64"
}
}
}
Without --output-dir, the reference is returned without a local file.
A failed run exits non-zero per the standard exit codes and returns Result: "Failure" with the cause in Message and the next step in Instructions. When the workflow completed but its output files could not be downloaded, the failure also carries the workflow output in Data, so the attachment IDs are kept.
Associé
- uip api-workflow build — compiler le projet avant de l'exécuter.
- uip api-workflow pack — empaqueter un workflow validé pour la publication.
Voir également
- Présentation de l’outil de workflow d’API
- Options globales
- Codes de sortie
uip login— informations d'identification chargées parrunsauf si--no-authest défini.