ProcessDefinitionV2 流程定义
1. 结构声明
- TS Declaration
- JSON Schema
class ProcessDefinitionV2 extends BaseNode {
description: string;
status: 'designing' | 'enabled' | 'outdated' = 'designing';
elements: Array<ProcessElementV2>;
version: number;
bindEvents: Array<BindEvent>;
variables: Array<Variable>;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"changedTime": {
"$ref": "#/definitions/long"
},
"description": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"designing",
"enabled",
"outdated"
]
},
"elements": {
"type": "array",
"items": {
"$ref": "#/definitions/ProcessElementV2"
}
},
"version": {
"type": "number"
},
"bindEvents": {
"type": "array",
"items": {
"$ref": "#/definitions/BindEvent"
}
},
"variables": {
"type": "array",
"items": {
"$ref": "#/definitions/Variable"
}
}
},
"required": [
"description",
"status",
"elements",
"version",
"bindEvents",
"variables"
],
"additionalProperties": false
}