UiPath Documentation
uipath-cli
latest
false
Guide de l'utilisateur de UiPath CLI
Important :
Ce contenu a été traduit à l'aide d'une traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

débogage bpmn uip maestro

Chargez un projet Maestro BPMN local (ou un fichier.bpmn) vers Studio Web et exécutez une session de débogage côté serveur avec des mises à jour du statut en streaming à l'aide de `uip maestro bpmn debug`.

uip maestro bpmn debug télécharge un projet Maestro local — ou un fichier .bpmn unique — dans Studio Web et exécute une session de débogage côté serveur en affichant les mises à jour de statut par élément dans la console et en renvoyant un statut final. Elle est enregistrée sous la branche bpmn.

Synthèse​

uip maestro bpmn debug [project-path]
                  [--bpmn-file <path>]
                  [--entry-point <start-event-id>]
                  [--folder-id <id> | --folder-key <key> | --folder-path <path>]
                  [--poll-interval <ms>]
                  [-i, --inputs <json>]
                  [--login-validity <minutes>]
uip maestro bpmn debug [project-path]
                  [--bpmn-file <path>]
                  [--entry-point <start-event-id>]
                  [--folder-id <id> | --folder-key <key> | --folder-path <path>]
                  [--poll-interval <ms>]
                  [-i, --inputs <json>]
                  [--login-validity <minutes>]

Nécessite uip login. Les options globales sont respectées. Les codes de sortie suivent le contrat standard.

Arguments​

  • [project-path] (facultatif) : chemin d'accès au répertoire du projet Maestro. Doit contenir project.uiproj. Omettez lorsque vous utilisez --bpmn-file. L’un des éléments <project-path> ou --bpmn-file est requis; la transmission des deux est une erreur (« Indiquez un chemin d’accès au projet ou --bpmn-file, pas les deux. »).

Options​

OptionDefaultDescription
--bpmn-file <path>—Déboguez un seul fichier .bpmn directement au lieu d'un répertoire de projet. Capture mutuellement exclusive avec <project-path>.
--entry-point <start-event-id>point d’entrée par défaut, sinon le premierDémarrer l'événement à partir duquel déboguer, par son ID BPMN (une entrée dans entry-points.json). Un événement de début qui entry-points.json ne répertorie pas les échecs, en nommant les événements de début qu'il contient. S’applique uniquement à un répertoire de projet; la combinaison avec --bpmn-file échoue avec ErrorCode: "invalid_argument".
--folder-id <id>Détecté automatiquementOrchestrator folder (OrganizationUnitId), a positive integer. If no folder option is passed, the folder on the current login session is used.
--folder-key <key>—Orchestrator folder key (UUID). The CLI resolves it to the folder ID.
--folder-path <path>—Orchestrator folder path, for example Shared/Sub. The CLI resolves it to the folder ID.
--poll-interval <ms>2000Intervalle d'interrogation en millisecondes. Doit être un nombre positif.
-i, --inputs <json>—Arguments d'entrée sous la forme d'une chaîne JSON ou @path/to/file.json.
--login-validity <minutes>10Nombre minimum de minutes avant l’expiration du jeton pour déclencher une actualisation automatique.

Pass at most one of --folder-id, --folder-key, and --folder-path. Passing more than one, or a folder key or path that matches no folder, fails with Result: "ValidationError" and exit code 3.

Comportement​

  1. Valide la connexion et extrait l'organisation, le locataire, l'URL de base et le jeton d'authentification de la session.
  2. Charge le projet dans Studio Web sous le dossier cible.
  3. Interrogation pour un statut final, extrayant des lignes de statut par élément comme:
    Status: InProgress (2/5 elements completed)
      v Activity_1 [Completed]
      > Activity_2 [InProgress]
      - Activity_3 [NotStarted]
    Status: InProgress (2/5 elements completed)
      v Activity_1 [Completed]
      > Activity_2 [InProgress]
      - Activity_3 [NotStarted]
    
  4. En cas d'incident pendant l'exécution, génère une ligne de journal.
  5. Exits 0 if finalStatus is Completed or Successful. For any other final status, such as Faulted or Cancelled, the command returns a failure and exits 1.

Exemples​

# Debug with auto-detected folder
uip maestro bpmn debug ./invoice-orchestration

# Specify folder and inline inputs
uip maestro bpmn debug ./invoice-orchestration --folder-id 2553016 \
  --inputs '{"amount":100,"customer":"Acme"}'

# Name the folder by its path
uip maestro bpmn debug ./invoice-orchestration --folder-path "Finance/Invoices"

# Inputs from a file
uip maestro bpmn debug ./invoice-orchestration --inputs @inputs.json

# Start the run at a specific start event
uip maestro bpmn debug ./invoice-orchestration --entry-point Event_trigger

# Debug a single .bpmn file directly, without a full project directory
uip maestro bpmn debug --bpmn-file ./main.bpmn
# Debug with auto-detected folder
uip maestro bpmn debug ./invoice-orchestration

# Specify folder and inline inputs
uip maestro bpmn debug ./invoice-orchestration --folder-id 2553016 \
  --inputs '{"amount":100,"customer":"Acme"}'

# Name the folder by its path
uip maestro bpmn debug ./invoice-orchestration --folder-path "Finance/Invoices"

# Inputs from a file
uip maestro bpmn debug ./invoice-orchestration --inputs @inputs.json

# Start the run at a specific start event
uip maestro bpmn debug ./invoice-orchestration --entry-point Event_trigger

# Debug a single .bpmn file directly, without a full project directory
uip maestro bpmn debug --bpmn-file ./main.bpmn

Format des données (--sortie json)​

{
  "Code": "MaestroDebug",
  "Data": {
    "jobKey":      "b2c3d4e5-0000-0000-0000-000000000001",
    "instanceId":  "c3d4e5f6-0000-0000-0000-000000000001",
    "runId":       "d4e5f6a7-0000-0000-0000-000000000001",
    "finalStatus": "Completed",
    "solutionId":  "e5f6a7b8-0000-0000-0000-000000000001",
    "studioWebUrl": "https://cloud.uipath.com/org/studio_/designer/f6a7b8c9-...?solutionId=e5f6a7b8-...",
    "elementExecutions": [
      { "elementId": "Activity_1", "status": "Completed" }
    ]
  }
}
{
  "Code": "MaestroDebug",
  "Data": {
    "jobKey":      "b2c3d4e5-0000-0000-0000-000000000001",
    "instanceId":  "c3d4e5f6-0000-0000-0000-000000000001",
    "runId":       "d4e5f6a7-0000-0000-0000-000000000001",
    "finalStatus": "Completed",
    "solutionId":  "e5f6a7b8-0000-0000-0000-000000000001",
    "studioWebUrl": "https://cloud.uipath.com/org/studio_/designer/f6a7b8c9-...?solutionId=e5f6a7b8-...",
    "elementExecutions": [
      { "elementId": "Activity_1", "status": "Completed" }
    ]
  }
}

studioWebUrl renvoie directement à l'exécution du débogage dans Studio Web.

When the run ends in a status other than Completed or Successful, the response has Result: "Failure", Code: "MaestroDebug", and ErrorCode: "execution_failed". Data has the same fields, and Data.incidents holds the incidents of the run:

{
  "Result": "Failure",
  "Code": "MaestroDebug",
  "ErrorCode": "execution_failed",
  "Message": "Debug session Faulted. …",
  "Data": {
    "instanceId":  "c3d4e5f6-0000-0000-0000-000000000001",
    "finalStatus": "Faulted",
    "incidents": [
      {
        "id":           "a1b2c3d4-0000-0000-0000-000000000001",
        "elementId":    "Activity_1",
        "errorCode":    "190001",
        "errorMessage": "Invalid timer expression"
      }
    ]
  }
}
{
  "Result": "Failure",
  "Code": "MaestroDebug",
  "ErrorCode": "execution_failed",
  "Message": "Debug session Faulted. …",
  "Data": {
    "instanceId":  "c3d4e5f6-0000-0000-0000-000000000001",
    "finalStatus": "Faulted",
    "incidents": [
      {
        "id":           "a1b2c3d4-0000-0000-0000-000000000001",
        "elementId":    "Activity_1",
        "errorCode":    "190001",
        "errorMessage": "Invalid timer expression"
      }
    ]
  }
}

Instructions lists the incidents and gives the uip maestro bpmn debug-instances incidents command that returns their full details.

Voir également​

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance(opens in new window)

Vous souhaitez apprendre ? UiPath Academy(opens in new window)

Vous avez des questions ? UiPath Forum(opens in new window)

Rester à jour