ProcessV2 流程
1. 结构声明
- TS Declaration
- JSON Schema
class ProcessV2 extends BaseNode {
uniqueKey: uniqueKey = createUniqueKey();
name: string = '';
title: string;
description: string;
elements: Array<ProcessElementV2>;
version: number;
status: 'designing' | 'enabled';
historyProcesses: Array<HistoryProcessV2>;
bind: ProcessBindV2;
bindEvents: Array<BindEvent>;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"uniqueKey": {
"$ref": "#/definitions/uniqueKey"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"elements": {
"type": "array",
"items": {
"$ref": "#/definitions/ProcessElementV2"
}
},
"version": {
"type": "number"
},
"status": {
"type": "string",
"enum": [
"designing",
"enabled"
]
},
"historyProcesses": {
"type": "array",
"items": {
"$ref": "#/definitions/HistoryProcessV2"
}
},
"bind": {
"$ref": "#/definitions/ProcessBindV2"
},
"bindEvents": {
"type": "array",
"items": {
"$ref": "#/definitions/BindEvent"
}
}
},
"required": [
"uniqueKey",
"name",
"title",
"description",
"elements",
"version",
"status",
"historyProcesses",
"bind",
"bindEvents"
],
"additionalProperties": false
}