7. 【App】WorkFlow-Process

7.1. 列表我的待办任务

Type: GET

Author: Timothy

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

Description: 列表我的待办任务

Request-example:

curl -X GET -i '/flow/task/listMyTodo'

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."
      }
    }
  }
]

7.2. 列表我的已办任务

Type: GET

Author: Timothy

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

Description: 列表我的已办任务

Request-example:

curl -X GET -i '/flow/task/listMyDid'

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."
      }
    }
  }
]

7.3. 通过审批

Type: POST

Author: Timothy

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

Description: 通过审批

Query-parameters:

Parameter Type Description Required Since

taskId

string

No comments found.

false

-

comment

string

No comments found.

false

-

Request-example:

curl -X POST -i '/flow/task/approve' --data '=kflfhc'

Response-example:

true

7.4. 转交任务

Type: POST

Author: Timothy

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

Description: 转交任务

Query-parameters:

Parameter Type Description Required Since

taskId

string

No comments found.

false

-

assignee

string

No comments found.

false

-

Request-example:

curl -X POST -i '/flow/task/transfer' --data '=e2ai6p'

Response-example:

true

7.5. 驳回审批

Type: POST

Author: Timothy

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

Description: 驳回审批

Query-parameters:

Parameter Type Description Required Since

processId

string

No comments found.

false

-

comment

string

No comments found.

false

-

Request-example:

curl -X POST -i '/flow/task/reject' --data '=gsbtmi'

Response-example:

true