ProcessElement 流程元素
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface ProcessElement {
"concept": "ProcessElement", // 产品概念
"name": string, // 流程元素名称
"title": string, // 流程元素标题
"description": string, // 流程元素描述
"bindEvents": Array<BindEvent>, // 元素绑定事件列表
"type": string, // type
"sourceRef": string, // sourceRef
"targetRef": string, // targetRef
"bounds": Rect, // 矩形信息
"waypoints": Array<Point>, // 点信息列表
"flowValue": string, // flowValue
"logic": Logic, // 逻辑
"variables": Array<Variable>, // 变量列表
"returns": Array<Return>, // 输出参数列表
"constants": Array<Constant>, // 常量列表
"bindAttrs": Array<BindAttribute>, // 元素绑定属性列表
}
class ProcessElementTreeNode {
ConceptEnum concept; // 产品概念
String name; // 流程元素名称
String title; // 流程元素标题
String description; // 流程元素描述
List<BindEventTreeNode> bindEvents; // 元素绑定事件列表
String type; // type
String sourceRef; // sourceRef
String targetRef; // targetRef
RectTreeNode bounds; // 矩形信息
List<PointTreeNode> waypoints; // 点信息列表
String flowValue; // flowValue
LogicTreeNode logic; // 逻辑
List<VariableTreeNode> variables; // 变量列表
List<ReturnTreeNode> returns; // 输出参数列表
List<ConstantTreeNode> constants; // 常量列表
List<BindAttributeTreeNode> bindAttrs; // 元素绑定属性列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/ProcessElement",
"definitions": {
"ProcessElement": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "ProcessElement"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"bindEvents": {
"type": "array",
"items": {
"$ref": "#/definitions/BindEvent"
}
},
"type": {
"type": "string"
},
"sourceRef": {
"type": "string"
},
"targetRef": {
"type": "string"
},
"bounds": {
"$ref": "#/definitions/Rect"
},
"waypoints": {
"type": "array",
"items": {
"$ref": "#/definitions/Point"
}
},
"flowValue": {
"type": "string"
},
"logic": {
"$ref": "#/definitions/Logic"
},
"variables": {
"type": "array",
"items": {
"$ref": "#/definitions/Variable"
}
},
"returns": {
"type": "array",
"items": {
"$ref": "#/definitions/Return"
}
},
"constants": {
"type": "array",
"items": {
"$ref": "#/definitions/Constant"
}
},
"bindAttrs": {
"type": "array",
"items": {
"$ref": "#/definitions/BindAttribute"
}
}
},
"required": [
"concept",
"name",
"title",
"description",
"bindEvents",
"type",
"sourceRef",
"targetRef",
"bounds",
"waypoints",
"flowValue",
"logic",
"variables",
"returns",
"constants",
"bindAttrs"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "ProcessElement",
"name": "Process1",
"title": null,
"description": null,
"bindEvents": [],
"type": null,
"sourceRef": null,
"targetRef": null,
"bounds": null,
"waypoints": [],
"flowValue": null,
"logic": null,
"variables": [],
"returns": [],
"constants": [],
"bindAttrs": []
}
concept: ProcessElement
name: Process1
title: null
description: null
bindEvents: []
type: null
sourceRef: null
targetRef: null
bounds: null
waypoints: []
flowValue: null
logic: null
variables: []
returns: []
constants: []
bindAttrs: []