Process 流程
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Process {
"concept": "Process", // 产品概念
"name": string, // 流程名称
"title": string, // 流程标题
"description": string, // 流程描述
"bindEvents": Array<BindEvent>, // 元素绑定事件列表
"params": Array<Param>, // 输入参数列表
"returns": Array<Return>, // 输出参数列表
"constants": Array<Constant>, // 常量列表
"elements": Array<ProcessElement>, // 流程元素列表
}
class ProcessTreeNode {
ConceptEnum concept; // 产品概念
String name; // 流程名称
String title; // 流程标题
String description; // 流程描述
List<BindEventTreeNode> bindEvents; // 元素绑定事件列表
List<ParamTreeNode> params; // 输入参数列表
List<ReturnTreeNode> returns; // 输出参数列表
List<ConstantTreeNode> constants; // 常量列表
List<ProcessElementTreeNode> elements; // 流程元素列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Process",
"definitions": {
"Process": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Process"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"bindEvents": {
"type": "array",
"items": {
"$ref": "#/definitions/BindEvent"
}
},
"params": {
"type": "array",
"items": {
"$ref": "#/definitions/Param"
}
},
"returns": {
"type": "array",
"items": {
"$ref": "#/definitions/Return"
}
},
"constants": {
"type": "array",
"items": {
"$ref": "#/definitions/Constant"
}
},
"elements": {
"type": "array",
"items": {
"$ref": "#/definitions/ProcessElement"
}
}
},
"required": [
"concept",
"name",
"title",
"description",
"bindEvents",
"params",
"returns",
"constants",
"elements"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Process",
"name": "Process1",
"title": "审批流程",
"description": "审批流程描述",
"bindEvents": [],
"params": [],
"returns": [],
"constants": [],
"elements": []
}
concept: Process
name: Process1
title: 审批流程
description: 审批流程描述
bindEvents: []
params: []
returns: []
constants: []
elements: []