Alfresco API

GET / tasks / {taskId} / items

基本信息

获取指定任务taskId的项目列表。

如果已启动身份验证的用户已启动流程或该用户参与了流程的任何任务,则该用户将有权访问任务的项目。 在网络中,仅返回给定网络内的进程的项目。

在非网络部署中,管理员可以查看所有项目并对这些项目执行所有操作。 在网络部署中,网络管理员可以查看其网络中的所有项目并对其网络中的项目执行所有操作。

请求方式 GET

请求API / tasks / {taskId} / items

响应等级(状态200)

成功回应

{
  "list": {
    "pagination": {
      "count": 0,
      "hasMoreItems": true,
      "totalItems": 0,
      "skipCount": 0,
      "maxItems": 0
    },
    "entries": [
      {
        "entry": {
          "id": "string",
          "name": "string",
          "value": 0,
          "title": "string",
          "description": "string",
          "mimeType": "string",
          "createdBy": {
            "id": "string",
            "firstName": "string",
            "lastName": "string",
            "description": "string",
            "avatarId": "string",
            "email": "string",
            "skypeId": "string",
            "googleId": "string",
            "instantMessageId": "string",
            "jobTitle": "string",
            "location": "string",
            "company": {
              "organization": "string",
              "address1": "string",
              "address2": "string",
              "address3": "string",
              "postcode": "string",
              "telephone": "string",
              "fax": "string",
              "email": "string"
            },
            "mobile": "string",
            "telephone": "string",
            "statusUpdatedAt": "2021-01-15T07:50:19.278Z",
            "userStatus": "string",
            "enabled": true,
            "emailNotificationsEnabled": true
          },
          "createdAt": "2021-01-15T07:50:19.278Z",
          "edited": true,
          "modifiedBy": {
            "id": "string",
            "firstName": "string",
            "lastName": "string",
            "description": "string",
            "avatarId": "string",
            "email": "string",
            "skypeId": "string",
            "googleId": "string",
            "instantMessageId": "string",
            "jobTitle": "string",
            "location": "string",
            "company": {
              "organization": "string",
              "address1": "string",
              "address2": "string",
              "address3": "string",
              "postcode": "string",
              "telephone": "string",
              "fax": "string",
              "email": "string"
            },
            "mobile": "string",
            "telephone": "string",
            "statusUpdatedAt": "2021-01-15T07:50:19.278Z",
            "userStatus": "string",
            "enabled": true,
            "emailNotificationsEnabled": true
          },
          "modifiedAt": "2021-01-15T07:50:19.278Z",
          "size": 0
        }
      }
    ]
  }
}

响应内容类型 applicaiton/json

Query参数

名称 类型 是否必填 示例值 描述
skipCount integer   在list中跳过指定数量的数据。
maxItems integer   在list中要返回的最大项目数。
properties Array[string]   属性名称列表。 您可以使用properties参数来限制返回的属性数。

Path参数

名称 类型 是否必填 示例值 描述
taskId string   任务的标识符。

错误信息描述

状态码 原因
400 参数无效:maxItemsskipCount的值无效
401 验证失败
404 taskId不存在
default 意外错误

返回结果示例

{
  "error": {
    "errorKey": "string",
    "statusCode": 0,
    "briefSummary": "string",
    "stackTrace": "string",
    "descriptionURL": "string",
    "logId": "string"
  }
}