3. 流程操作

3.1. 跳转到可视化界面

Type: GET

Author: mr.sanq

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 跳转到可视化界面

Query-parameters:

ParameterTypeDescriptionRequiredSince

modelId

string

流程编号

false

-

tenantId

string

租户

false

-

category

string

分类

false

-

Request-example:

curl -X GET -i /model/rest/creator?modelId=77&tenantId=77&category=9suc8r

Response-example:

Doesn't return a value.

3.2. 分页获取流程数据

Type: GET

Author: mr.sanq

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 分页获取流程数据

Query-parameters:

ParameterTypeDescriptionRequiredSince

name

string

流程名称

false

-

key

string

唯一标识

false

-

category

string

分类

false

-

tenantId

string

租户

false

-

currentIndex

int32

页码

false

-

pageSize

int32

显示条数

false

-

Request-example:

curl -X GET -i /model/rest/list?tenantId=77&name=健柏.田&category=osj8jh¤tIndex=1&pageSize=10&key=qr10zc

Response-fields:

FieldTypeDescriptionSince

meta

object

No comments found.

-

└─success

boolean

No comments found.

-

└─message

string

No comments found.

-

└─code

int32

No comments found.

-

data

object

No comments found.

-

└─pagination

object

No comments found.

-

     └─pageSize

int32

No comments found.

-

     └─currentIndex

int32

No comments found.

-

     └─sorts

array

No comments found.

-

          └─field

string

No comments found.

-

          └─sorted

string

No comments found.

-

     └─totalCount

int64

No comments found.

-

└─datas

array

No comments found.

-

     └─id

string

编号

-

     └─name

string

名称

-

     └─key

string

唯一标识

-

     └─category

string

分类

-

     └─createTime

string

创建时间

-

     └─lastUpdateTime

string

最后一次修改时间

-

     └─metaInfo

string

元数据信息

-

     └─deploymentId

string

部署ID

-

     └─version

int32

版本号

-

Response-example:

{
  "meta": {
    "success": true,
    "message": "success",
    "code": 767
  },
  "data": {
    "pagination": {
      "pageSize": 10,
      "currentIndex": 720,
      "sorts": [
        {
          "field": "l4ooyi",
          "sorted": "p3yf9o"
        }
      ],
      "totalCount": 82
    },
    "datas": [
      {
        "id": "77",
        "name": "健柏.田",
        "key": "i85a8h",
        "category": "286z4l",
        "createTime": "2021-12-25 16:23:22",
        "lastUpdateTime": "2021-12-25 16:23:22",
        "metaInfo": "5lu846",
        "deploymentId": "77",
        "version": 872
      }
    ]
  }
}

3.3. 发布流程

Type: POST

Author: mr.sanq

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 发布流程

Path-parameters:

ParameterTypeDescriptionRequiredSince

modelId

string

流程ID

true

-

Request-example:

curl -X POST -i /model/rest/deploy/77

Response-fields:

FieldTypeDescriptionSince

meta

object

No comments found.

-

└─success

boolean

No comments found.

-

└─message

string

No comments found.

-

└─code

int32

No comments found.

-

data

object

No comments found.

-

Response-example:

{
  "meta": {
    "success": true,
    "message": "success",
    "code": 138
  },
  "data": true
}

3.4. 删除流程

Type: DELETE

Author: mr.sanq

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 删除流程

Path-parameters:

ParameterTypeDescriptionRequiredSince

modelId

string

流程ID

true

-

Request-example:

curl -X DELETE -i /model/rest/77

Response-fields:

FieldTypeDescriptionSince

meta

object

No comments found.

-

└─success

boolean

No comments found.

-

└─message

string

No comments found.

-

└─code

int32

No comments found.

-

data

object

No comments found.

-

Response-example:

{
  "meta": {
    "success": true,
    "message": "success",
    "code": 121
  },
  "data": true
}

3.5. 通过 processDefinitionId 获取当前Model

Type: GET

Author: mr.sanq

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 通过 processDefinitionId 获取当前Model

Path-parameters:

ParameterTypeDescriptionRequiredSince

processDefinitionId

string

processDefinitionId

true

-

Request-example:

curl -X GET -i /model/rest/77

Response-fields:

FieldTypeDescriptionSince

meta

object

No comments found.

-

└─success

boolean

No comments found.

-

└─message

string

No comments found.

-

└─code

int32

No comments found.

-

data

object

No comments found.

-

└─id

string

编号

-

└─name

string

名称

-

└─key

string

唯一标识

-

└─category

string

分类

-

└─createTime

string

创建时间

-

└─lastUpdateTime

string

最后一次修改时间

-

└─metaInfo

string

元数据信息

-

└─deploymentId

string

部署ID

-

└─version

int32

版本号

-

Response-example:

{
  "meta": {
    "success": true,
    "message": "success",
    "code": 642
  },
  "data": {
    "id": "77",
    "name": "健柏.田",
    "key": "tud2ua",
    "category": "ghqy0d",
    "createTime": "2021-12-25 16:23:22",
    "lastUpdateTime": "2021-12-25 16:23:22",
    "metaInfo": "q541zd",
    "deploymentId": "77",
    "version": 996
  }
}

3.6. 查看当前流程图

Type: GET

Author: mr.sanq

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 查看当前流程图

Query-parameters:

ParameterTypeDescriptionRequiredSince

processDefinitionKey

string

流程定义key

true

-

Request-example:

curl -X GET -i /model/rest/viewPic?processDefinitionKey=bvh5z5

Response-fields:

FieldTypeDescriptionSince

meta

object

No comments found.

-

└─success

boolean

No comments found.

-

└─message

string

No comments found.

-

└─code

int32

No comments found.

-

data

object

No comments found.

-

Response-example:

{
  "meta": {
    "success": true,
    "message": "success",
    "code": 775
  },
  "data": "ckdhdi"
}