LogicItem 逻辑项
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface LogicItem {
"concept": "LogicItem" | "AnonymousFunction" | "Abort" | "Start" | "End" | "IfStatement" | "SwitchStatement" | "SwitchCase" | "ForEachStatement" | "WhileStatement" | "Assignment" | "BatchAssignment" | "Comment" | "CallLogic" | "CallConnector" | "CallFunction" | "CallInterface" | "CallAuthInterface" | "Destination" | "ExternalDestination" | "ValidationRule" | "Argument" | "Anchor" | "JSBlock" | "JavaLogic" | "Identifier" | "NullLiteral" | "BooleanLiteral" | "StringLiteral" | "StringInterpolation" | "NumericLiteral" | "BinaryExpression" | "MatchCase" | "Match" | "UnaryExpression" | "MemberExpression" | "Unparsed" | "New" | "NewComposite" | "NewList" | "NewMap" | "CallQueryComponent" | "QueryFromExpression" | "QueryJoinExpression" | "QueryFieldExpression" | "QueryAggregateExpression" | "QueryOrderByExpression" | "QueryGroupByExpression" | "QuerySelectExpression" | "QueryLimitExpression" | "SqlQueryComponent" | "OqlQueryComponent" | "ProcessOutcome" | "Assignee" | "ProcessOutcomes", // 产品概念
"label": string, // 逻辑项标题
"description": string, // 逻辑项描述
"folded": boolean, // 是否折叠
"offsetX": number, // offsetX
"offsetY": number, // offsetY
}
class LogicItemTreeNode {
ConceptEnum concept; // 产品概念
String label; // 逻辑项标题
String description; // 逻辑项描述
boolean folded; // 是否折叠
double offsetX; // offsetX
double offsetY; // offsetY
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/LogicItem",
"definitions": {
"LogicItem": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"enum": [
"LogicItem",
"AnonymousFunction",
"Abort",
"Start",
"End",
"IfStatement",
"SwitchStatement",
"SwitchCase",
"ForEachStatement",
"WhileStatement",
"Assignment",
"BatchAssignment",
"Comment",
"CallLogic",
"CallConnector",
"CallFunction",
"CallInterface",
"CallAuthInterface",
"Destination",
"ExternalDestination",
"ValidationRule",
"Argument",
"Anchor",
"JSBlock",
"JavaLogic",
"Identifier",
"NullLiteral",
"BooleanLiteral",
"StringLiteral",
"StringInterpolation",
"NumericLiteral",
"BinaryExpression",
"MatchCase",
"Match",
"UnaryExpression",
"MemberExpression",
"Unparsed",
"New",
"NewComposite",
"NewList",
"NewMap",
"CallQueryComponent",
"QueryFromExpression",
"QueryJoinExpression",
"QueryFieldExpression",
"QueryAggregateExpression",
"QueryOrderByExpression",
"QueryGroupByExpression",
"QuerySelectExpression",
"QueryLimitExpression",
"SqlQueryComponent",
"OqlQueryComponent",
"ProcessOutcome",
"Assignee",
"ProcessOutcomes"
]
},
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"folded": {
"type": "boolean"
},
"offsetX": {
"type": "number"
},
"offsetY": {
"type": "number"
}
},
"required": [
"concept",
"label",
"description",
"folded",
"offsetX",
"offsetY"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "LogicItem",
"label": "节点",
"description": "",
"folded": false,
"offsetX": null,
"offsetY": null
}
concept: LogicItem
label: 节点
description: ""
folded: false
offsetX: null
offsetY: null