UiPath Documentation
uipath-cli
latest
false
UiPath CLI ユーザー ガイド
重要 :
このコンテンツは機械翻訳によって処理されています。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

uip maestro case tasks

Syntax and options for `uip maestro case tasks`, which reads and enriches tasks within a stage in a case management definition JSON file, plus the JSON field reference for hand-authoring one.

A task is a unit of work inside a stage of a case management definition — a process run, an agent invocation, an API workflow, an RPA job, a human action item, a timer wait, a connector activity, or a wait for an inbound connector event. Task entries live inside a stage's lanes in the case-definition JSON file (the same file structure stages and task-entry-conditions operate on); uip maestro case tasks reads and enriches them.

For entry rules that gate when a task becomes runnable, see uip maestro case task-entry-conditions. For the overall Case Management concept model, see uip maestro case.

概念

  • Lane — tasks within a stage are grouped into parallel lanes (index 0, 1, 2, …); tasks in the same lane run sequentially, tasks in different lanes run in parallel. lane defaults to 0 when hand-authoring a task.
  • Task type — one of process, action, agent, api-workflow, rpa, external-agent, wait-for-timer, wait-for-connector, execute-connector-activity, case-management. Connector-backed types (execute-connector-activity, wait-for-connector) use a different field shape than the others (see below).
  • Enrichment — several task types need input/output schema and binding metadata pulled from the platform (a process's real input/output contract, a connector activity's field schema) before Studio Web can render them meaningfully. tasks enrich and tasks describe are lookup commands for that metadata, useful for discovering what to write into a task's JSON before hand-authoring it.

概要

uip maestro case tasks get <file> <stage-id> <task-id>
uip maestro case tasks enrich --type <type> --id <id> [--element-id <id>]
uip maestro case tasks describe --type <type> --id <id> [--connection-id <id>]
uip maestro case tasks get <file> <stage-id> <task-id>
uip maestro case tasks enrich --type <type> --id <id> [--element-id <id>]
uip maestro case tasks describe --type <type> --id <id> [--connection-id <id>]

Task JSON fields

Tasks are added, edited, and removed by hand in caseplan.json's stage lane arrays, then validated with uip maestro case validate. Field reference:

A non-connector task — task types: process, action, agent, api-workflow, rpa, external-agent, wait-for-timer, case-management (connector-backed types below are separate). Fields: displayName, name (process/workflow name), folderPath, lane (parallel-lane index, default 0), shouldRunOnlyOnce, description, isRequired; action-type only: taskTitle, priority (Low|Medium|High|Critical, default Medium), recipient (email; also sets assignmentCriteria to user). An enriched task (bindings/inputs/outputs looked up from the platform) additionally carries a stable elementId and enriched: true — use tasks enrich to fetch that payload before hand-writing it in.

A connector-backed task — task type execute-connector-activity (activity) or wait-for-connector (trigger), identified by a TypeCache uiPathActivityTypeId and a connection ID. Carries a serviceType of Intsvc.ActivityExecution (activity) or Intsvc.WaitForEvent (trigger). Input values: for an activity, keyed by input name (body, pathParameters, queryParameters); for a trigger, values under body become event filter parameters (a filters.expression is generated from them, e.g. (project == 'PROJ' && issuetype == 'Bug')) and also populate queryParams/parameters. Use tasks describe to discover real input names and the full enrichment payload before hand-writing a task.

Updating a task — merge the same displayName/name/folderPath/shouldRunOnlyOnce/description/isRequired fields onto the existing task object (unlisted fields keep their current value). name/folderPath have no effect on a wait-for-timer task, which has no data block.

Removing a task — delete its entry from the stage's lane array directly; drop the lane entirely if it becomes empty.

After any hand-edit, run uip maestro case validate.

uip maestro case tasks get

Print a single task from a stage.

引数

名前Required目的
<file>Path to the case management JSON file.
<stage-id>ID of the stage containing the task.
<task-id>ID of the task to retrieve.

uip maestro case tasks get case.json Stage_1 ta1b2c3d
uip maestro case tasks get case.json Stage_1 ta1b2c3d

データシェイプ(--output json)

{
  "Code": "TaskFound",
  "Data": {
    "StageId": "Stage_1",
    "Lane": 0,
    "Index": 0,
    "Task": { "id": "ta1b2c3d", "type": "process", "displayName": "Process invoice" }
  }
}
{
  "Code": "TaskFound",
  "Data": {
    "StageId": "Stage_1",
    "Lane": 0,
    "Index": 0,
    "Task": { "id": "ta1b2c3d", "type": "process", "displayName": "Process invoice" }
  }
}

uip maestro case tasks enrich

Look up a task type's real input/output schema and bindings from the platform, without writing to any file. Visible in --help.

注:

Use this to preview what tasks add --task-type-id will produce before committing it to a file. For connector activities/triggers specifically, use tasks describe instead — enrich covers the other enrichable types (process, agent, rpa, action, api-workflow, case-management, flow-process).

オプション

長押し値 (Value)Required説明
--type <type>one of the enrichable typesTask type.
--id <id>stringUnique ID of the task (entityKey or Action App ID, depending on type).
--element-id <id>string×Element ID to scope the variable binding to.

uip maestro case tasks enrich --type process --id a1b2c3d4-0000-0000-0000-000000000001
uip maestro case tasks enrich --type process --id a1b2c3d4-0000-0000-0000-000000000001

データシェイプ(--output json)

{
  "Code": "TaskEnriched",
  "Data": {
    "name": "InvoiceProcess",
    "folderPath": "Shared",
    "inputs": [],
    "outputs": []
  }
}
{
  "Code": "TaskEnriched",
  "Data": {
    "name": "InvoiceProcess",
    "folderPath": "Shared",
    "inputs": [],
    "outputs": []
  }
}

The exact Data shape depends on --type — a raw enrichment payload from the platform, not normalized to one fixed schema.

uip maestro case tasks describe

Describe a task type's input/output metadata for binding discovery — the widest type coverage of any lookup command here (adds connector-activity, connector-trigger, external-workflow, and external-agent on top of everything enrich supports). Visible in --help.

オプション

長押し値 (Value)Required説明
--type <type>one of the describable typesTask type — see the list above.
--id <id>stringUnique ID of the task (entityKey or Action App ID).
--connection-id <id>UUIDconditionallyRequired for connector-activity, connector-trigger, external-workflow, and external-agent — the command fails fast with an explicit error if omitted for these types. Not used for other types.

external-workflow and external-agent describe identically to connector-activity (same Integration Service enrichment pipeline, same --connection-id requirement) but resolve their type ID against a different TypeCache index, since Studio Web serves them from a separate catalog.

uip maestro case tasks describe --type connector-activity \
  --id a1b2c3d4-0000-0000-0000-000000000001 \
  --connection-id b2c3d4e5-0000-0000-0000-000000000001
uip maestro case tasks describe --type connector-activity \
  --id a1b2c3d4-0000-0000-0000-000000000001 \
  --connection-id b2c3d4e5-0000-0000-0000-000000000001

データシェイプ(--output json)

{
  "Code": "TaskDescribed",
  "Data": {
    "inputs": [{ "name": "body", "body": {} }],
    "outputs": [{ "name": "response" }]
  }
}
{
  "Code": "TaskDescribed",
  "Data": {
    "inputs": [{ "name": "body", "body": {} }],
    "outputs": [{ "name": "response" }]
  }
}

An enrichment field is included only when the underlying lookup returns one.

参照

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得