16. 【Manager】WorkFlow-Process

16.1. 获取所有任务

Type: GET

Author: Timothy

Content-Type: application/x-www-form-urlencoded

Description: 获取所有任务

Request-example:

curl -X GET -i '/flow/ma/task/listAll'

Response-fields:

Field Type Description Since

id

string

ID

-

parentId

string

父ID

-

name

string

任务名称

-

processName

string

流程名称

-

taskKey

string

任务键值

-

userId

string

发起者用户ID

-

username

string

发起者用户名

-

nickname

string

发起者用户昵称

-

owner

string

所有者

-

assignee

string

委派人

-

executionId

string

执行ID

-

instanceId

string

进程实例ID

-

definitionId

string

进程定义ID

-

tenantId

string

承租人ID

-

suspended

boolean

是否暂停

-

state

string

任务状态

-

deleted

boolean

是否已删除

-

description

string

描述

-

duration

int64

持续时间(Millis)

-

startTime

string

发起时间

-

createTime

string

创建时间

-

endTime

string

完成时间

-

updateTime

string

最后更新时间

-

removalTime

string

最后期限

-

variables

object

User Variables

-

└─mapKey

object

A map key.

-

     └─any object

object

any object.

-

Response-example:

[
  {
    "id": "",
    "parentId": "",
    "name": "",
    "processName": "",
    "taskKey": "",
    "userId": "",
    "username": "",
    "nickname": "",
    "owner": "",
    "assignee": "",
    "executionId": "",
    "instanceId": "",
    "definitionId": "",
    "tenantId": "",
    "suspended": true,
    "state": "",
    "deleted": true,
    "description": "",
    "duration": 0,
    "startTime": "yyyy-MM-dd HH:mm:ss",
    "createTime": "yyyy-MM-dd HH:mm:ss",
    "endTime": "yyyy-MM-dd HH:mm:ss",
    "updateTime": "yyyy-MM-dd HH:mm:ss",
    "removalTime": "yyyy-MM-dd HH:mm:ss",
    "variables": {
      "mapKey": {
        "warning": "Using java.util.Object as a Map value is not recommended. Smart-doc cannot process it properly. Please use a specific type for better documentation generation."
      }
    }
  }
]