ProcessComponent 流程组件
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface ProcessComponent {
"concept": "ProcessComponent", // 产品概念
"name": string, // 流程组件名称
"title": string, // 流程组件标题
"description": string, // 流程组件描述
"category": string, // category
"attrs": Array<Attribute>, // 组件属性列表
"logics": Array<Logic>, // 逻辑列表
}
class ProcessComponentTreeNode {
ConceptEnum concept; // 产品概念
String name; // 流程组件名称
String title; // 流程组件标题
String description; // 流程组件描述
String category; // category
List<AttributeTreeNode> attrs; // 组件属性列表
List<LogicTreeNode> logics; // 逻辑列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/ProcessComponent",
"definitions": {
"ProcessComponent": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "ProcessComponent"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"category": {
"type": "string"
},
"attrs": {
"type": "array",
"items": {
"$ref": "#/definitions/Attribute"
}
},
"logics": {
"type": "array",
"items": {
"$ref": "#/definitions/Logic"
}
}
},
"required": [
"concept",
"name",
"title",
"description",
"category",
"attrs",
"logics"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "ProcessComponent",
"name": "UserTask",
"title": "数据表格",
"description": "用于展示大量结构化数据。支持排序、过滤(筛选)、分页、自定义操作等复杂功能。",
"category": "Table",
"attrs": [],
"logics": []
}
concept: ProcessComponent
name: UserTask
title: 数据表格
description: 用于展示大量结构化数据。支持排序、过滤(筛选)、分页、自定义操作等复杂功能。
category: Table
attrs: []
logics: []