118 lines
3.1 KiB
JSON
118 lines
3.1 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "approval_step",
|
|
"title": "审批步骤",
|
|
"primary": "id",
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"comments": "主键UUID"
|
|
},
|
|
{
|
|
"name": "workflow_id",
|
|
"title": "工作流ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"comments": "关联的工作流"
|
|
},
|
|
{
|
|
"name": "step_name",
|
|
"title": "步骤名称",
|
|
"type": "str",
|
|
"length": 100,
|
|
"nullable": "no",
|
|
"comments": "审批步骤名称"
|
|
},
|
|
{
|
|
"name": "step_order",
|
|
"title": "步骤顺序",
|
|
"type": "long",
|
|
"nullable": "no",
|
|
"comments": "步骤执行顺序"
|
|
},
|
|
{
|
|
"name": "approver_type",
|
|
"title": "审批人类型",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no",
|
|
"comments": "role/user/department/dynamic"
|
|
},
|
|
{
|
|
"name": "approver_value",
|
|
"title": "审批人值",
|
|
"type": "str",
|
|
"length": 100,
|
|
"nullable": "yes",
|
|
"comments": "角色ID/用户ID/部门ID/动态表达式"
|
|
},
|
|
{
|
|
"name": "approval_type",
|
|
"title": "审批类型",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no",
|
|
"comments": "single/multiple/sequential/parallel"
|
|
},
|
|
{
|
|
"name": "timeout_hours",
|
|
"title": "超时小时数",
|
|
"type": "long",
|
|
"nullable": "yes",
|
|
"comments": "审批超时时间(小时)"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "描述",
|
|
"type": "str",
|
|
"length": 500,
|
|
"nullable": "yes",
|
|
"comments": "步骤描述"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "组织ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"comments": "多租户组织隔离"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_step_workflow",
|
|
"idxtype": "index",
|
|
"idxfields": ["workflow_id"]
|
|
},
|
|
{
|
|
"name": "idx_step_order",
|
|
"idxtype": "index",
|
|
"idxfields": ["workflow_id", "step_order"]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "approver_type",
|
|
"table": "appcodes",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "codetype='APPROVER_TYPE'"
|
|
},
|
|
{
|
|
"field": "approval_type",
|
|
"table": "appcodes",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "codetype='APPROVAL_TYPE'"
|
|
}
|
|
]
|
|
} |