Orchestrator
2022.10
False
  • 入门指南
  • Swagger 定义
  • Orchestrator API 使用示例
  • 平台管理 API
横幅背景图像
Orchestrator API 指南
上次更新日期 2023年11月10日

任务表单请求

Complete Task

需要将当前用户分配给该任务,否则无法执行操作。

发布

/forms/TaskForms/CompleteTask

请求标头

密钥

授权

承载

请求正文

{
  "taskId": 195,
  "data": {name: "dada", password: "dada", submit: true},
  "action": "submit"
}{
  "taskId": 195,
  "data": {name: "dada", password: "dada", submit: true},
  "action": "submit"
}

响应代码

204 无内容

返回任务表单

根据 taskId检索任务表单。 请求中必须包含 taskId

获取

/forms/TaskForms/GetTaskFormById?taskId=90

请求标头

密钥

授权

承载

响应代码

200 OK

响应正文

{
  "formLayout": {
    "components": [
      {
        "numRows": 2,
        "numCols": 6,
        "type": "table",
        "mask": false,
        "customClass": "uipath-button-container",
        "tableView": true,
        "alwaysEnabled": false,
        "input": false,
        "key": "key",
        "label": "label",
        "rows": [
          [
            {
              "components": [
                {
                  "label": "Name",
                  "showWordCount": false,
                  "showCharCount": false,
                  "alwaysEnabled": false,
                  "type": "textfield",
                  "input": true,
                  "key": "name",
                  "defaultValue": "",
                  "tableView": true,
                  "validate": {
                    "customMessage": ""
                  },
                  "conditional": {
                    "show": "",
                    "when": ""
                  },
                  "reorder": false
                }
              ]
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            }
          ],
          [
            {
              "components": [
                {
                  "label": "Password",
                  "showWordCount": false,
                  "showCharCount": false,
                  "alwaysEnabled": false,
                  "type": "password",
                  "input": true,
                  "key": "password",
                  "defaultValue": "",
                  "protected": true,
                  "tableView": false,
                  "validate": {
                    "customMessage": ""
                  },
                  "conditional": {
                    "show": "",
                    "when": ""
                  },
                  "reorder": false
                }
              ]
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            }
          ]
        ],
        "header": [],
        "customConditional": "",
        "logic": [],
        "conditional": {
          "show": "",
          "when": ""
        },
        "reorder": false
      },
      {
        "type": "button",
        "label": "Submit",
        "key": "submit",
        "disableOnInvalid": true,
        "theme": "primary",
        "input": true,
        "alwaysEnabled": false,
        "tableView": true
      }
    ]
  },
  "actionLabel": "Submit",
  "assignedToUserId": 52454,
  "assignedToUser": {
    "name": "",
    "surname": "",
    "userName": "admin",
    "emailAddress": "",
    "id": 52454
  },
  "status": 2,
  "data": {
    "name": "admin",
    "password": "hardtocrackpassword@1264564&"
  },
  "action": "submit",
  "externalTag": null,
  "id": 90
}{
  "formLayout": {
    "components": [
      {
        "numRows": 2,
        "numCols": 6,
        "type": "table",
        "mask": false,
        "customClass": "uipath-button-container",
        "tableView": true,
        "alwaysEnabled": false,
        "input": false,
        "key": "key",
        "label": "label",
        "rows": [
          [
            {
              "components": [
                {
                  "label": "Name",
                  "showWordCount": false,
                  "showCharCount": false,
                  "alwaysEnabled": false,
                  "type": "textfield",
                  "input": true,
                  "key": "name",
                  "defaultValue": "",
                  "tableView": true,
                  "validate": {
                    "customMessage": ""
                  },
                  "conditional": {
                    "show": "",
                    "when": ""
                  },
                  "reorder": false
                }
              ]
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            }
          ],
          [
            {
              "components": [
                {
                  "label": "Password",
                  "showWordCount": false,
                  "showCharCount": false,
                  "alwaysEnabled": false,
                  "type": "password",
                  "input": true,
                  "key": "password",
                  "defaultValue": "",
                  "protected": true,
                  "tableView": false,
                  "validate": {
                    "customMessage": ""
                  },
                  "conditional": {
                    "show": "",
                    "when": ""
                  },
                  "reorder": false
                }
              ]
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            },
            {
              "components": []
            }
          ]
        ],
        "header": [],
        "customConditional": "",
        "logic": [],
        "conditional": {
          "show": "",
          "when": ""
        },
        "reorder": false
      },
      {
        "type": "button",
        "label": "Submit",
        "key": "submit",
        "disableOnInvalid": true,
        "theme": "primary",
        "input": true,
        "alwaysEnabled": false,
        "tableView": true
      }
    ]
  },
  "actionLabel": "Submit",
  "assignedToUserId": 52454,
  "assignedToUser": {
    "name": "",
    "surname": "",
    "userName": "admin",
    "emailAddress": "",
    "id": 52454
  },
  "status": 2,
  "data": {
    "name": "admin",
    "password": "hardtocrackpassword@1264564&"
  },
  "action": "submit",
  "externalTag": null,
  "id": 90
}
  • Complete Task
  • 请求标头
  • 请求正文
  • 响应代码
  • 返回任务表单
  • 请求标头
  • 响应代码
  • 响应正文

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.