9. 【Manager】WorkFlow-Process

9.1. 获取指定流程定义

Type: GET

Author: Timothy

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

Description: 获取指定流程定义

Query-parameters:

Parameter Type Description Required Since

key

string

No comments found.

false

-

Request-example:

curl -X GET -i '/flow/ma/definition/query?=udzh8d'

Response-fields:

Field Type Description Since

id

string

ID

-

definitionId

string

Definition Id

-

instanceId

string

Instance Id

-

activityId

string

ActivityId

-

activityName

string

ActivityName

-

key

string

Key

-

caseId

string

CaseInstanceId

-

name

string

名称

-

deployId

string

部署ID

-

version

int32

版本

-

revision

int32

修订

-

firstVersion

boolean

是否首版

-

started

boolean

是否开始

-

suspended

boolean

是否暂停

-

active

boolean

是否活动

-

ended

boolean

是否完成

-

tenantId

string

承租人ID

-

timeToLive

int32

生存时间

-

description

string

描述

-

businessKey

string

Business Key

-

title

string

标题

-

content

string

内容

-

amount

int32

数量

-

initiator

string

发起人

-

variables

object

User Variables

-

└─mapKey

object

A map key.

-

     └─any object

object

any object.

-

formFields

array

Form Fields

-

└─id

string

No comments found.

-

└─label

string

No comments found.

-

└─type

object

No comments found.

-

     └─name

string

Name for the form type.

-

└─typeName

string

No comments found.

-

└─defaultValue

object

No comments found.

-

└─value

object

No comments found.

-

     └─value

object

The actual value. May be null in case the value is null.

-

     └─type

object

The type of the value. See ValueType for a list of built-in ValueTypes.

-

          └─name

string

Returns the name of the variable type

-

          └─primitiveValueType

boolean

Indicates whether this type is primitive valued. Primitive valued types can be handled
natively by the process engine.

-

          └─parent

object

Gets the parent value type.

Value type hierarchy is only relevant for queries and has the
following meaning: When a value query is made
(e.g. all tasks with a certain variable value), a "child" type's value
also matches a parameter value of the parent type. This is only
supported when the parent value type's implementation of {@link #isAbstract()}
returns <code>true</code>. $ref... self

-

          └─abstract

boolean

Returns whether the value type is abstract. This is <b>not related
to the term <i>abstract</i> in the Java language.</b>

Abstract value types cannot be used as types for variables but only used for querying.

-

     └─transient

boolean

Indicator for transience of the value

-

└─validationConstraints

array

No comments found.

-

     └─name

string

No comments found.

-

     └─configuration

object

No comments found.

-

└─properties

object

No comments found.

-

     └─mapKey

string

A map key.

-

└─businessKey

boolean

No comments found.

-

Response-example:

{"id":"","definitionId":"","instanceId":"","activityId":"","activityName":"","key":"","caseId":"","name":"","deployId":"","version":0,"revision":0,"firstVersion":true,"started":true,"suspended":true,"active":true,"ended":true,"tenantId":"","timeToLive":0,"description":"","businessKey":"","title":"","content":"","amount":0,"initiator":"","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."}}"formFields":[{"id":"","label":"","type":{"name":""},"typeName":"","defaultValue":{},"value":{"value":{},"type":{"name":"","primitiveValueType":true,"parent":{"$ref":"..."},"abstract":true},"transient":true},"validationConstraints":[{"name":"","configuration":{}}],"properties":{"mapKey1":"","mapKey2":""}"businessKey":true}]}

9.2. 获取所有流程定义

Type: GET

Author: Timothy

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

Description: 获取所有流程定义

Request-example:

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

Response-fields:

Field Type Description Since

id

string

ID

-

definitionId

string

Definition Id

-

instanceId

string

Instance Id

-

activityId

string

ActivityId

-

activityName

string

ActivityName

-

key

string

Key

-

caseId

string

CaseInstanceId

-

name

string

名称

-

deployId

string

部署ID

-

version

int32

版本

-

revision

int32

修订

-

firstVersion

boolean

是否首版

-

started

boolean

是否开始

-

suspended

boolean

是否暂停

-

active

boolean

是否活动

-

ended

boolean

是否完成

-

tenantId

string

承租人ID

-

timeToLive

int32

生存时间

-

description

string

描述

-

businessKey

string

Business Key

-

title

string

标题

-

content

string

内容

-

amount

int32

数量

-

initiator

string

发起人

-

variables

object

User Variables

-

└─mapKey

object

A map key.

-

     └─any object

object

any object.

-

formFields

array

Form Fields

-

└─id

string

No comments found.

-

└─label

string

No comments found.

-

└─type

object

No comments found.

-

     └─name

string

Name for the form type.

-

└─typeName

string

No comments found.

-

└─defaultValue

object

No comments found.

-

└─value

object

No comments found.

-

     └─value

object

The actual value. May be null in case the value is null.

-

     └─type

object

The type of the value. See ValueType for a list of built-in ValueTypes.

-

          └─name

string

Returns the name of the variable type

-

          └─primitiveValueType

boolean

Indicates whether this type is primitive valued. Primitive valued types can be handled
natively by the process engine.

-

          └─parent

object

Gets the parent value type.

Value type hierarchy is only relevant for queries and has the
following meaning: When a value query is made
(e.g. all tasks with a certain variable value), a &quot;child&quot; type's value
also matches a parameter value of the parent type. This is only
supported when the parent value type's implementation of {@link #isAbstract()}
returns <code>true</code>. $ref... self

-

          └─abstract

boolean

Returns whether the value type is abstract. This is <b>not related
to the term <i>abstract</i> in the Java language.</b>

Abstract value types cannot be used as types for variables but only used for querying.

-

     └─transient

boolean

Indicator for transience of the value

-

└─validationConstraints

array

No comments found.

-

     └─name

string

No comments found.

-

     └─configuration

object

No comments found.

-

└─properties

object

No comments found.

-

     └─mapKey

string

A map key.

-

└─businessKey

boolean

No comments found.

-

Response-example:

[{"id":"","definitionId":"","instanceId":"","activityId":"","activityName":"","key":"","caseId":"","name":"","deployId":"","version":0,"revision":0,"firstVersion":true,"started":true,"suspended":true,"active":true,"ended":true,"tenantId":"","timeToLive":0,"description":"","businessKey":"","title":"","content":"","amount":0,"initiator":"","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."}}"formFields":[{"id":"","label":"","type":{"name":""},"typeName":"","defaultValue":{},"value":{"value":{},"type":{"name":"","primitiveValueType":true,"parent":{"$ref":"..."},"abstract":true},"transient":true},"validationConstraints":[{"name":"","configuration":{}}],"properties":{"mapKey1":"","mapKey2":""}"businessKey":true}]}]