maque-rule-designer
v0.1.0
Published
Generate rule metadata through drag and drop
Downloads
5
Readme
MAQUE-RULE-DESIGNER
Generate rule metadata through drag and drop
[中文]
Install
npm i maque-rule-designer
Illustrate
Contains components such as variables, judgments, returns, conditions, condition groups, constants, datasets, functions, operators, and evaluators
Metadata Format
[
{
"id": "id",
"type": "",
"component": "RuleVar",
"children": "",
"childrenIf": "",
"childrenElse": "",
"value": "",
"dsName": "DataSet's name",
"dsField": "DataSet's file name"
}
]
Type
export enum RuleEnum {
var = "var",
judge = "judge",
condition = "condition",
conditionGroupAnd = "conditionGroupAnd",
conditionGroupOr = "conditionGroupOr",
return = "return"
}
export enum ControlItemEnum {
const = "const",
constVarchar = "constVarchar",
constNumber = "constNumber",
dataset = "dataset",
func = "function",
decider = "decider",
getvar = "getvar",
operator = "operator",
}