uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
uip Maestro 案例任务进入条件
“uip Maestro case task-进入条件 get”的语法和选项,会读取案例管理定义 JSON 文件中任务可运行时的控制规则,以及用于手动编辑任务的 JSON 字段引用。
任务进入条件是附加到任务的命名规则集,用于确定任务何时符合运行条件,例如,仅在阶段中每隔一个任务完成之后,或仅在特定的命名任务完成之后。uip maestro case task-entry-conditions 从案例定义 JSON 文件中读取这些条件。
有关这些条件对应的任务,请参阅uip maestro case tasks 。有关整体案例管理概念模型,请参阅uip maestro case 。
概念
- 规则类型— 真实的、经过来源验证的规则集为
current-stage-entered、selected-tasks-completed、wait-for-connector、adhoc、runs-sequentially。selected-tasks-completed此外需要任务 ID 列表。注意:此命令自己的内置--help示例演示了--rule-type all-previous-tasks-completed,该示例不在上面的已验证列表中 — 将该特定值视为来源自己的示例中的错误,而非有效的规则类型。
大纲
uip maestro case task-entry-conditions get <file> <stage-id> <task-id> <condition-id>
uip maestro case task-entry-conditions get <file> <stage-id> <task-id> <condition-id>
uip Maestro 案例任务进入条件获取
按 ID 打印进入条件。
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<file> | 是 | 案例管理 JSON 文件的路径。 |
<stage-id> | 是 | 阶段节点 ID。 |
<task-id> | 是 | 任务的 ID。 |
<condition-id> | 是 | 要检索的进入条件的 ID。 |
示例
uip maestro case task-entry-conditions get case.json Stage_1 Task_1 Condition_a1b2c3d4
uip maestro case task-entry-conditions get case.json Stage_1 Task_1 Condition_a1b2c3d4
数据形状(--输出 json)
{
"Code": "TaskEntryConditionFound",
"Data": {
"Condition": { "id": "Condition_a1b2c3d4", "displayName": "Start", "rules": [[{ "id": "Rule_e5f6a7b8", "type": "current-stage-entered" }]] }
}
}
{
"Code": "TaskEntryConditionFound",
"Data": {
"Condition": { "id": "Condition_a1b2c3d4", "displayName": "Start", "rules": [[{ "id": "Rule_e5f6a7b8", "type": "current-stage-entered" }]] }
}
}
Condition 是存储在磁盘上的原始节点对象 — 手动编辑 caseplan.json 时请使用此形状作为参考。rules 是一个嵌套数组 — 每个“OR”分支规则组一个内部数组。
任务进入条件 JSON 字段
在 caseplan.json 的 task-进入条件数组中手动添加、编辑和删除条件。字段引用:
| 字段 | 值 | 注意 |
|---|---|---|
displayName | 字符串 | 条件的显示名称。 |
规则 type | current-stage-entered|selected-tasks-completed|wait-for-connector|adhoc|runs-sequentially | 进入 rules[][] 条目。 |
| 条件表达式 | 字符串 | 规则的自由格式表达式(当规则类型支持时)。 |
selectedTasksIds | 字符串数组 | 需要与 selected-tasks-completed 规则一起使用。 |
直接编辑caseplan.json的 task-进入条件数组后,运行uip maestro case validate 。
相关内容
- uip Maestro 案例— 概念和完整子系统目录。
- uip Maestro 案例任务— 这些条件门控的任务。
- uip Maestro 案例案例与阶段— 任务所在的阶段。
- uip Maestro 案例条件— 案例级别和阶段级别的等效项。