根据实际期望实现需求,应使用节点变量,使用模型变量导致异常报错,此处实例为发卡人员来自上个人工表单提交的数据,使用节点变量符合较符合实现场景。
其中节点变量含义为每个节点输出的变量。人工/签核节点输出的节点变量为同意/提交的数据 。。自动节点的节点变量为撰写返回脚本return的json内容
模型的概念:基于实际业务场景设计的数据库表结构。
模型变量的概念:开发平台下基于业务场景设计的表结构json数据。例如以下json就是一个含有三条零件数据的零件模型变量{
"componentrvnxglnm": [{
"tenant_id": "athenadeveloperTest",
"manage_status": "N",
"componentrvnxglnm_id": 3,
"description": "很不错",
"serial_number": "",
"unit_price": "99.9",
"stock_quantity": 990,
"complete_state": "0",
"supplierndejsekevonnfvnwggxydj": [{
"tenant_id": "athenadeveloperTest",
"create_by": "wenwu@digiwin.com",
"contact_person": "闻武",
"tenantsid": 847600433497088,
"supplierndejsekevonnfvnwggxydj_id": 3,
"componentrvnxglnm_id": 3,
"creator_name": "闻武",
"create_date": "2024/11/28 15:37:17",
"contact_number": "18772619340"
}],
"create_by": "wenwu@digiwin.com",
"tenantsid": 847600433497088,
"creator_name": "闻武",
"create_date": "2024/11/28 15:37:17",
"part_name": "弹簧"
}, {
"tenant_id": "athenadeveloperTest",
"manage_status": "N",
"componentrvnxglnm_id": 2,
"description": "不错",
"serial_number": "",
"unit_price": "19.9",
"stock_quantity": 100,
"complete_state": "0",
"supplierndejsekevonnfvnwggxydj": [{
"tenant_id": "athenadeveloperTest",
"create_by": "wenwu@digiwin.com",
"contact_person": "闻武",
"tenantsid": 847600433497088,
"supplierndejsekevonnfvnwggxydj_id": 2,
"componentrvnxglnm_id": 2,
"creator_name": "闻武",
"create_date": "2024/11/28 15:37:15",
"contact_number": "18772619340"
}],
"create_by": "wenwu@digiwin.com",
"tenantsid": 847600433497088,
"creator_name": "闻武",
"create_date": "2024/11/28 15:37:15",
"part_name": "联轴器"
}, {
"tenant_id": "athenadeveloperTest",
"manage_status": "N",
"componentrvnxglnm_id": 1,
"description": "很棒",
"serial_number": "",
"unit_price": "9.9",
"stock_quantity": 100,
"complete_state": "0",
"supplierndejsekevonnfvnwggxydj": [{
"tenant_id": "athenadeveloperTest",
"create_by": "wenwu@digiwin.com",
"contact_person": "闻武",
"tenantsid": 847600433497088,
"supplierndejsekevonnfvnwggxydj_id": 1,
"componentrvnxglnm_id": 1,
"creator_name": "闻武",
"create_date": "2024/11/28 15:37:14",
"contact_number": "18772619340"
}],
"create_by": "wenwu@digiwin.com",
"tenantsid": 847600433497088,
"creator_name": "闻武",
"create_date": "2024/11/28 15:37:14",
"part_name": "齿轮传动"
}]
}
适用于用节点变量的场景:需求明确到一个特定节点提交数据,例如设定一个关卡的发卡人特德的人上个关卡中的一个业务字段,那么此时可以指定发卡人取节点变量特定字段
使用于使用模型变量:实现场景针对是当前流程中的某一特定业务字段,非哪个节点的特定提交输出,例如多人签核中的签核状态非拒绝此时需求不特定某个特定节点,只要是签核状态为拒绝则执行某种动作,此场景适用模型变量 |