use uav_process;

delete from `biz_flow_task`  where  `process_type` in('YuHangAiTransmiss','leaveTest','missionEndProcess');

insert into `biz_flow_task` (`process_type`, `task_type`) values('YuHangAiTransmiss','YuHangAiTransmission');
insert into `biz_flow_task` (`process_type`, `task_type`) values('YuHangAiTransmiss','lockRes');
insert into `biz_flow_task` (`process_type`, `task_type`) values('YuHangAiTransmiss','sendWarnSms');
insert into `biz_flow_task` (`process_type`, `task_type`) values('leaveTest','tesQueryAwailableDay');
insert into `biz_flow_task` (`process_type`, `task_type`) values('leaveTest','testFillLeaveInfo');
insert into `biz_flow_task` (`process_type`, `task_type`) values('leaveTest','testManagerApproval');
insert into `biz_flow_task` (`process_type`, `task_type`) values('leaveTest','testSysApproval');
insert into `biz_flow_task` (`process_type`, `task_type`) values('missionEndProcess','mergeVideo');
insert into `biz_flow_task` (`process_type`, `task_type`) values('missionEndProcess','reportToCustomizedAd');
insert into `biz_flow_task` (`process_type`, `task_type`) values('missionEndProcess','sendMissionReport');
insert into `biz_flow_task` (`process_type`, `task_type`) values('missionEndProcess','stopMissionAI2SaveDa');


delete from `biz_task_def` where   task_type in (select task_type from biz_flow_task where process_type in('YuHangAiTransmiss','leaveTest','missionEndProcess' ));
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('testFillLeaveInfo','填写请假信息','填写请假信息（别删除）','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-process\",\"url\":\"/process/bizengine/testTask/leave/fillLeaveInfo\"}','','[{\"paramName\":\"name\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"phone\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"leaveDay\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"reason\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:43:13','2023-07-11 14:20:57');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('tesQueryAwailableDay','查询用户剩余年假天数','查询用户剩余年假天数（别删除）','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-process\",\"url\":\"/process/bizengine/testTask/leave/queryAvailableDay\"}','','[{\"paramName\":\"phone\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"leaveDay\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"totalLeaveDay\",\"srcName\":\"data.totalLeaveDay\"}]','0','2023-08-04 12:44:02','2023-07-11 14:23:05');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('testSysApproval','系统审批请假信息','系统审批请假信息（别删除)','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-process\",\"url\":\"/process/bizengine/testTask/leave/sysApproval\"}','','[{\"paramName\":\"name\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"phone\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"leaveDay\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"totalLeaveDay\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"reason\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:43:27','2023-07-11 14:26:04');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('testManagerApproval','经理市批请假信息','经理审批请假信息（别删除）','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-process\",\"url\":\"/process/bizengine/testTask/leave/managerApproval\"}','','[{\"paramName\":\"name\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"phone\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"leaveDay\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"totalLeaveDay\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"reason\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:43:17','2023-07-11 14:27:41');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('YuHangAiTransmission','御航输电线路图片检测','御航输电线路图片检测（mission)','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-mission\",\"url\":\"/api/uav/mission/mission_info/yuhang/transmission?missionId={missionId}\"}','','[{\"paramName\":\"missionId\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"}]','0','2023-08-04 12:44:48','2023-07-20 17:11:45');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('lockRes','获取资源锁','获取资源锁;用于单线程进入。用于限制一段时间内只执行1次的任务。','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-process\",\"url\":\"/process/bizengine/tools/lock\"}','','[{\"paramName\":\"group\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"resId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"waitTime\",\"paramType\":\"fixed\",\"val\":\"5\"},{\"paramName\":\"lockTime\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"},{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:45:03','2023-07-20 17:29:03');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('unLockRes','释放资源锁','释放资源锁\n锁唯一性:groupId+resId','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-process\",\"url\":\"/process/bizengine/tools/unLock\"}','','[{\"paramName\":\"group\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"resId\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"},{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:45:55','2023-07-20 17:31:50');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('sendWarnSms','发送告警短信','发送告警短信','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-process\",\"url\":\"/process/bizengine/tools/sendWarnSms\"}','','[{\"paramName\":\"phone\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"tplCode\",\"paramType\":\"fixed\",\"val\":\"bizproc_warn_sms\"},{\"paramName\":\"warnInfo\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"envName\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"},{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-07-26 10:21:38','2023-07-20 17:37:28');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('stopMissionAI2SaveDa','停止作业相关AI任务及保存AI数据','作业结束流程-步骤1:停止作业相关AI任务及保存AI数据','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-mission\",\"url\":\"/api/uav/mission/bizproc/stopMissionAI2SaveData?companyId={companyId}&userId={userId}&missionId={missionId}\"}','','[{\"paramName\":\"userId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"missionId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"companyId\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"},{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:44:34','2023-07-24 15:38:49');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('mergeVideo','提交视频合成任务','作业结束流程-步骤2:提交视频合成任务','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-mission\",\"url\":\"/api/uav/mission/bizproc/mergeVideo?missionId={missionId}\"}','','[{\"paramName\":\"missionId\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"},{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:44:16','2023-07-24 15:39:56');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('sendMissionReport','发送作业报告给用户','作业结束流程-步骤3-1:发送作业报告给用户','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-mission\",\"url\":\"/api/uav/mission/bizproc/sendMissionReport?missionId={missionId}&companyId={companyId}&missionEndOccur={missionEndOccur}\"}','','[{\"paramName\":\"companyId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"missionId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"missionEndOccur\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"},{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:44:10','2023-07-24 15:43:47');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('reportToCustomizedAd','湘潭定制需求 将作业报告发送到指定地址','作业结束流程-步骤3-2:湘潭定制需求 将作业报告发送到指定地址','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-mission\",\"url\":\"/api/uav/mission/bizproc/sendMissionReportToCustomizedAddress?missionId={missionId}&companyId={companyId}\"}','','[{\"paramName\":\"companyId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"missionId\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"},{\"paramName\":\"success\",\"srcName\":\"data\"}]','0','2023-08-04 12:43:48','2023-07-24 15:46:54');


delete from `biz_flow_def` where  `process_type` in('YuHangAiTransmiss','leaveTest','missionEndProcess');

insert into `biz_flow_def` (`process_type`, `process_name`, `process_desc`, `process_cate`, `tenant_id`, `in_param`, `flow_config`, `deployee_id`, `is_lock`, `period`, `time_start`, `time_end`, `call_cycle`, `cycle_unit`, `update_at`, `create_at`) values('YuHangAiTransmiss','御航输电线路图片检测(不要删除)','getYuHangAiTransmissionDefect','custom','','[{\"paramName\":\"missionId\",\"valDesc\":\"作业id\"}]','{\"elements\":[{\"id\":\"Event_1d42u4p\",\"name\":\"开始\",\"taskNodeConfig\":{},\"type\":\"start\"},{\"id\":\"Event_08p8i6q\",\"name\":\"结束\",\"taskNodeConfig\":{},\"type\":\"end\"},{\"id\":\"Activity_1sp8qc8\",\"name\":\"御航输电线路图片检测\",\"taskNodeConfig\":{\"taskType\":\"YuHangAiTransmission\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"},{\"paramName\":\"SYS_IGNORE_ERROR\",\"paramType\":\"fixed\",\"val\":\"true\"},{\"paramName\":\"SYS_IGNORE_FAIL\",\"paramType\":\"fixed\",\"val\":\"true\"}]},\"type\":\"task\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_1ubee0b\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_2o3tp1a\",\"name\":\"获取资源锁5小时\",\"taskNodeConfig\":{\"taskType\":\"lockRes\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"\",\"paramName\":\"group\",\"paramType\":\"fixed\",\"val\":\"mission\"},{\"fromParamName\":\"yuhangjiekou\",\"paramName\":\"resId\",\"paramType\":\"fixed\",\"val\":\"yuhangjiekou4\"},{\"paramName\":\"waitTime\",\"paramType\":\"fixed\",\"val\":\"5\"},{\"fromParamName\":\"18000\",\"paramName\":\"lockTime\",\"paramType\":\"fixed\",\"val\":\"18000\"}]},\"type\":\"task\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_29rkip2\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_18rsl02\",\"name\":\"发送告警短信\",\"taskNodeConfig\":{\"taskType\":\"sendWarnSms\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"fixed\",\"val\":\"18628380221\"},{\"paramName\":\"tplCode\",\"paramType\":\"fixed\",\"val\":\"bizproc_warn_sms\"},{\"fromParamName\":\"warnInfo\",\"paramName\":\"warnInfo\",\"paramType\":\"fixed\",\"val\":\"御航输电线路图片检测接口调用失败\"},{\"fromParamName\":\"validation环境\",\"paramName\":\"envName\",\"paramType\":\"fixed\",\"val\":\"uat\"}]},\"type\":\"task\"}],\"flowLineCoordinate\":{\"Flow_18eq5br\":{\"endPoint\":{\"x\":510.0,\"y\":160.0},\"id\":\"Flow_18eq5br\",\"startPoint\":{\"x\":338.0,\"y\":160.0}},\"Flow_2bijlvq\":{\"endPoint\":{\"x\":715.0,\"y\":160.0},\"id\":\"Flow_2bijlvq\",\"startPoint\":{\"x\":610.0,\"y\":160.0}},\"Flow_05tkjee\":{\"endPoint\":{\"x\":740.0,\"y\":320.0},\"id\":\"Flow_05tkjee\",\"prop\":{\"x\":740,\"y\":253,\"value\":\"${code!=0}\"},\"startPoint\":{\"x\":740.0,\"y\":185.0}},\"Flow_1bferfg\":{\"endPoint\":{\"x\":1202.0,\"y\":160.0},\"id\":\"Flow_1bferfg\",\"prop\":{\"x\":1037,\"y\":160,\"value\":\"${code==0}\"},\"startPoint\":{\"x\":765.0,\"y\":160.0}},\"Flow_03mulma\":{\"endPoint\":{\"x\":935.0,\"y\":360.0},\"id\":\"Flow_03mulma\",\"startPoint\":{\"x\":790.0,\"y\":360.0}},\"Flow_1ba1jr5\":{\"endPoint\":{\"x\":1220.0,\"y\":178.0},\"id\":\"Flow_1ba1jr5\",\"prop\":{\"x\":1082,\"y\":360,\"value\":\"${success==false}\"},\"startPoint\":{\"x\":985.0,\"y\":360.0}},\"Flow_1ssfnh3\":{\"endPoint\":{\"x\":960.0,\"y\":500.0},\"id\":\"Flow_1ssfnh3\",\"prop\":{\"x\":960,\"y\":443,\"value\":\"${success==true}\"},\"startPoint\":{\"x\":960.0,\"y\":385.0}},\"Flow_3b33i2l\":{\"endPoint\":{\"x\":1220.0,\"y\":178.0},\"id\":\"Flow_3b33i2l\",\"startPoint\":{\"x\":1010.0,\"y\":540.0}}},\"flowNodeCoordinate\":{\"Event_1d42u4p\":{\"id\":\"Event_1d42u4p\",\"prop\":{\"x\":320,\"y\":160,\"value\":\"开始\"},\"type\":\"bpmn:startEvent\",\"x\":320,\"y\":160},\"Event_08p8i6q\":{\"id\":\"Event_08p8i6q\",\"prop\":{\"x\":1220,\"y\":160,\"value\":\"结束\"},\"type\":\"bpmn:endEvent\",\"x\":1220,\"y\":160},\"Activity_1sp8qc8\":{\"id\":\"Activity_1sp8qc8\",\"prop\":{\"x\":560,\"y\":160,\"value\":\"御航输电线路图片检测\"},\"type\":\"bpmn:serviceTask\",\"x\":560,\"y\":160},\"Gateway_1ubee0b\":{\"id\":\"Gateway_1ubee0b\",\"prop\":{\"x\":740,\"y\":200,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":740,\"y\":160},\"Activity_2o3tp1a\":{\"id\":\"Activity_2o3tp1a\",\"prop\":{\"x\":740,\"y\":360,\"value\":\"获取资源锁5小时\"},\"type\":\"bpmn:serviceTask\",\"x\":740,\"y\":360},\"Gateway_29rkip2\":{\"id\":\"Gateway_29rkip2\",\"prop\":{\"x\":960,\"y\":400,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":960,\"y\":360},\"Activity_18rsl02\":{\"id\":\"Activity_18rsl02\",\"prop\":{\"x\":960,\"y\":540,\"value\":\"发送告警短信\"},\"type\":\"bpmn:serviceTask\",\"x\":960,\"y\":540}},\"flows\":[{\"conditionExpression\":\"\",\"id\":\"Flow_18eq5br\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Event_1d42u4p\",\"target\":\"Activity_1sp8qc8\"},{\"conditionExpression\":\"\",\"id\":\"Flow_2bijlvq\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_1sp8qc8\",\"target\":\"Gateway_1ubee0b\"},{\"conditionExpression\":\"${code!=0}\",\"id\":\"Flow_05tkjee\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1ubee0b\",\"target\":\"Activity_2o3tp1a\"},{\"conditionExpression\":\"${code==0}\",\"id\":\"Flow_1bferfg\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1ubee0b\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"\",\"id\":\"Flow_03mulma\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_2o3tp1a\",\"target\":\"Gateway_29rkip2\"},{\"conditionExpression\":\"${success==false}\",\"id\":\"Flow_1ba1jr5\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_29rkip2\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"${success==true}\",\"id\":\"Flow_1ssfnh3\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_29rkip2\",\"target\":\"Activity_18rsl02\"},{\"conditionExpression\":\"\",\"id\":\"Flow_3b33i2l\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_18rsl02\",\"target\":\"Event_08p8i6q\"}]}','a29ae1a1-3291-11ee-851c-22eeea72e24d','0','instant',NULL,NULL,NULL,NULL,'2023-08-04 14:39:20','2023-07-20 17:17:08');
insert into `biz_flow_def` (`process_type`, `process_name`, `process_desc`, `process_cate`, `tenant_id`, `in_param`, `flow_config`, `deployee_id`, `is_lock`, `period`, `time_start`, `time_end`, `call_cycle`, `cycle_unit`, `update_at`, `create_at`) values('leaveTest','请假','请假（别删除）','custom','','[{\"paramName\":\"name\",\"valDesc\":\"姓名\"},{\"paramName\":\"phone\",\"valDesc\":\"手机号\"},{\"paramName\":\"leaveDay\",\"valDesc\":\"请假天数\"},{\"paramName\":\"reason\",\"valDesc\":\"请假理由\"}]','{\"elements\":[{\"id\":\"Event_1d42u4p\",\"name\":\"开始\",\"taskNodeConfig\":{},\"type\":\"start\"},{\"id\":\"Event_08p8i6q\",\"name\":\"结束\",\"taskNodeConfig\":{},\"type\":\"end\"},{\"id\":\"Activity_1sp8qc8\",\"name\":\"填写请假信息\",\"taskNodeConfig\":{\"taskType\":\"testFillLeaveInfo\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"name\",\"paramName\":\"name\",\"paramType\":\"variable\"},{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"variable\"},{\"fromParamName\":\"leaveDay\",\"paramName\":\"leaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"reason\",\"paramName\":\"reason\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"id\":\"Activity_0pnu5ht\",\"name\":\"计算剩余年假\",\"taskNodeConfig\":{\"taskType\":\"tesQueryAwailableDay\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"variable\"},{\"fromParamName\":\"leaveDay\",\"paramName\":\"leaveDay\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_2mhf61j\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_025dfsk\",\"name\":\"系统审批\",\"taskNodeConfig\":{\"taskType\":\"testSysApproval\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"name\",\"paramName\":\"name\",\"paramType\":\"variable\"},{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"variable\"},{\"fromParamName\":\"leaveDay\",\"paramName\":\"leaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"totalLeaveDay\",\"paramName\":\"totalLeaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"reason\",\"paramName\":\"reason\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"id\":\"Activity_3fm5ah9\",\"name\":\"经理审批\",\"taskNodeConfig\":{\"taskType\":\"testManagerApproval\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"name\",\"paramName\":\"name\",\"paramType\":\"variable\"},{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"variable\"},{\"fromParamName\":\"leaveDay\",\"paramName\":\"leaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"totalLeaveDay\",\"paramName\":\"totalLeaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"reason\",\"paramName\":\"reason\",\"paramType\":\"variable\"}]},\"type\":\"task\"}],\"flowLineCoordinate\":{\"Flow_2820fe5\":{\"endPoint\":{\"x\":290.0,\"y\":200.0},\"id\":\"Flow_2820fe5\",\"startPoint\":{\"x\":158.0,\"y\":200.0}},\"Flow_1fgq78l\":{\"endPoint\":{\"x\":510.0,\"y\":200.0},\"id\":\"Flow_1fgq78l\",\"startPoint\":{\"x\":390.0,\"y\":200.0}},\"Flow_0ebukg8\":{\"endPoint\":{\"x\":735.0,\"y\":200.0},\"id\":\"Flow_0ebukg8\",\"startPoint\":{\"x\":610.0,\"y\":200.0}},\"Flow_0raqhk3\":{\"endPoint\":{\"x\":930.0,\"y\":100.0},\"id\":\"Flow_0raqhk3\",\"prop\":{\"x\":790,\"y\":100,\"value\":\"${totalLeaveDay<3}\"},\"startPoint\":{\"x\":760.0,\"y\":175.0}},\"Flow_0a7m4pt\":{\"endPoint\":{\"x\":930.0,\"y\":280.0},\"id\":\"Flow_0a7m4pt\",\"prop\":{\"x\":824,\"y\":280,\"value\":\"${totalLeaveDay>2}\"},\"startPoint\":{\"x\":760.0,\"y\":225.0}},\"Flow_24nsh7q\":{\"endPoint\":{\"x\":1202.0,\"y\":200.0},\"id\":\"Flow_24nsh7q\",\"startPoint\":{\"x\":1030.0,\"y\":280.0}},\"Flow_3mk9ddu\":{\"endPoint\":{\"x\":1202.0,\"y\":200.0},\"id\":\"Flow_3mk9ddu\",\"startPoint\":{\"x\":1030.0,\"y\":100.0}}},\"flowNodeCoordinate\":{\"Event_1d42u4p\":{\"id\":\"Event_1d42u4p\",\"prop\":{\"x\":140,\"y\":200,\"value\":\"开始\"},\"type\":\"bpmn:startEvent\",\"x\":140,\"y\":200},\"Event_08p8i6q\":{\"id\":\"Event_08p8i6q\",\"prop\":{\"x\":1220,\"y\":200,\"value\":\"结束\"},\"type\":\"bpmn:endEvent\",\"x\":1220,\"y\":200},\"Activity_1sp8qc8\":{\"id\":\"Activity_1sp8qc8\",\"prop\":{\"x\":340,\"y\":200,\"value\":\"填写请假信息\"},\"type\":\"bpmn:serviceTask\",\"x\":340,\"y\":200},\"Activity_0pnu5ht\":{\"id\":\"Activity_0pnu5ht\",\"prop\":{\"x\":560,\"y\":200,\"value\":\"计算剩余年假\"},\"type\":\"bpmn:serviceTask\",\"x\":560,\"y\":200},\"Gateway_2mhf61j\":{\"id\":\"Gateway_2mhf61j\",\"prop\":{\"x\":760,\"y\":240,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":760,\"y\":200},\"Activity_025dfsk\":{\"id\":\"Activity_025dfsk\",\"prop\":{\"x\":980,\"y\":100,\"value\":\"系统审批\"},\"type\":\"bpmn:serviceTask\",\"x\":980,\"y\":100},\"Activity_3fm5ah9\":{\"id\":\"Activity_3fm5ah9\",\"prop\":{\"x\":980,\"y\":280,\"value\":\"经理审批\"},\"type\":\"bpmn:serviceTask\",\"x\":980,\"y\":280}},\"flows\":[{\"conditionExpression\":\"\",\"id\":\"Flow_2820fe5\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Event_1d42u4p\",\"target\":\"Activity_1sp8qc8\"},{\"conditionExpression\":\"\",\"id\":\"Flow_1fgq78l\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_1sp8qc8\",\"target\":\"Activity_0pnu5ht\"},{\"conditionExpression\":\"\",\"id\":\"Flow_0ebukg8\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_0pnu5ht\",\"target\":\"Gateway_2mhf61j\"},{\"conditionExpression\":\"${totalLeaveDay<3}\",\"id\":\"Flow_0raqhk3\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_2mhf61j\",\"target\":\"Activity_025dfsk\"},{\"conditionExpression\":\"${totalLeaveDay>2}\",\"id\":\"Flow_0a7m4pt\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_2mhf61j\",\"target\":\"Activity_3fm5ah9\"},{\"conditionExpression\":\"\",\"id\":\"Flow_24nsh7q\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_3fm5ah9\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"\",\"id\":\"Flow_3mk9ddu\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_025dfsk\",\"target\":\"Event_08p8i6q\"}]}','0d34cdd4-1fb5-11ee-923f-723ca4007577','0','instant',NULL,NULL,NULL,NULL,'2023-07-11 14:36:59','2023-07-11 14:34:36');
insert into `biz_flow_def` (`process_type`, `process_name`, `process_desc`, `process_cate`, `tenant_id`, `in_param`, `flow_config`, `deployee_id`, `is_lock`, `period`, `time_start`, `time_end`, `call_cycle`, `cycle_unit`, `update_at`, `create_at`) values('missionEndProcess','作业结束处理流程(不要删除)','作业结束后处理流程.\n关闭ai，保存ai数据；合成视频；发送报告','custom','','[{\"paramName\":\"missionId\",\"valDesc\":\"作业id\"},{\"paramName\":\"companyId\",\"valDesc\":\"结束作业的公司id\"},{\"paramName\":\"userId\",\"valDesc\":\"结束作业的用户id\"},{\"paramName\":\"missionEndOccur\",\"valDesc\":\"是否来自系统自动触发\"}]','{\"elements\":[{\"id\":\"Event_1d42u4p\",\"name\":\"开始\",\"taskNodeConfig\":{},\"type\":\"start\"},{\"id\":\"Event_08p8i6q\",\"name\":\"结束\",\"taskNodeConfig\":{},\"type\":\"end\"},{\"id\":\"Activity_1sp8qc8\",\"name\":\"停止AI及保存AI数据\",\"taskNodeConfig\":{\"taskType\":\"stopMissionAI2SaveDa\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"userId\",\"paramName\":\"userId\",\"paramType\":\"variable\"},{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"},{\"paramName\":\"SYS_IGNORE_FAIL\",\"paramType\":\"fixed\",\"val\":\"true\"},{\"paramName\":\"SYS_IGNORE_ERROR\",\"paramType\":\"fixed\",\"val\":\"true\"}]},\"type\":\"task\"},{\"id\":\"Activity_0ktvocb\",\"name\":\"提交视频合成任务\",\"taskNodeConfig\":{\"taskType\":\"mergeVideo\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"gateWayType\":\"Parallel\",\"id\":\"Gateway_3hc78r0\",\"name\":\"并行网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_2hdlllg\",\"name\":\"发送作业报告给用户\",\"taskNodeConfig\":{\"taskType\":\"sendMissionReport\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"},{\"fromParamName\":\"missionEndOccur\",\"paramName\":\"missionEndOccur\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"id\":\"Activity_09b3p19\",\"name\":\"发送报告到指定地址（湘潭定制生效）\",\"taskNodeConfig\":{\"taskType\":\"reportToCustomizedAd\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"gateWayType\":\"Parallel\",\"id\":\"Gateway_0hr6uqh\",\"name\":\"并行网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"}],\"flowLineCoordinate\":{\"Flow_33u2dl1\":{\"endPoint\":{\"x\":390.0,\"y\":180.0},\"id\":\"Flow_33u2dl1\",\"startPoint\":{\"x\":258.0,\"y\":180.0}},\"Flow_0a0l86o\":{\"endPoint\":{\"x\":610.0,\"y\":180.0},\"id\":\"Flow_0a0l86o\",\"startPoint\":{\"x\":490.0,\"y\":180.0}},\"Flow_0vj10mg\":{\"endPoint\":{\"x\":795.0,\"y\":180.0},\"id\":\"Flow_0vj10mg\",\"startPoint\":{\"x\":710.0,\"y\":180.0}},\"Flow_0kq3dbj\":{\"endPoint\":{\"x\":950.0,\"y\":100.0},\"id\":\"Flow_0kq3dbj\",\"startPoint\":{\"x\":820.0,\"y\":155.0}},\"Flow_07mm96i\":{\"endPoint\":{\"x\":950.0,\"y\":280.0},\"id\":\"Flow_07mm96i\",\"startPoint\":{\"x\":820.0,\"y\":205.0}},\"Flow_2ja8jve\":{\"endPoint\":{\"x\":1180.0,\"y\":155.0},\"id\":\"Flow_2ja8jve\",\"startPoint\":{\"x\":1050.0,\"y\":100.0}},\"Flow_2oh66rv\":{\"endPoint\":{\"x\":1180.0,\"y\":205.0},\"id\":\"Flow_2oh66rv\",\"startPoint\":{\"x\":1050.0,\"y\":280.0}},\"Flow_3qlcank\":{\"endPoint\":{\"x\":1302.0,\"y\":180.0},\"id\":\"Flow_3qlcank\",\"startPoint\":{\"x\":1205.0,\"y\":180.0}}},\"flowNodeCoordinate\":{\"Event_1d42u4p\":{\"id\":\"Event_1d42u4p\",\"prop\":{\"x\":240,\"y\":180,\"value\":\"开始\"},\"type\":\"bpmn:startEvent\",\"x\":240,\"y\":180},\"Event_08p8i6q\":{\"id\":\"Event_08p8i6q\",\"prop\":{\"x\":1320,\"y\":180,\"value\":\"结束\"},\"type\":\"bpmn:endEvent\",\"x\":1320,\"y\":180},\"Activity_1sp8qc8\":{\"id\":\"Activity_1sp8qc8\",\"prop\":{\"x\":440,\"y\":180,\"value\":\"停止AI及保存AI数据\"},\"type\":\"bpmn:serviceTask\",\"x\":440,\"y\":180},\"Activity_0ktvocb\":{\"id\":\"Activity_0ktvocb\",\"prop\":{\"x\":660,\"y\":180,\"value\":\"提交视频合成任务\"},\"type\":\"bpmn:serviceTask\",\"x\":660,\"y\":180},\"Gateway_3hc78r0\":{\"id\":\"Gateway_3hc78r0\",\"prop\":{\"x\":820,\"y\":220,\"value\":\"并行网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":820,\"y\":180},\"Activity_2hdlllg\":{\"id\":\"Activity_2hdlllg\",\"prop\":{\"x\":1000,\"y\":100,\"value\":\"发送作业报告给用户\"},\"type\":\"bpmn:serviceTask\",\"x\":1000,\"y\":100},\"Activity_09b3p19\":{\"id\":\"Activity_09b3p19\",\"prop\":{\"x\":1000,\"y\":280,\"value\":\"发送报告到指定地址（湘潭定制生效）\"},\"type\":\"bpmn:serviceTask\",\"x\":1000,\"y\":280},\"Gateway_0hr6uqh\":{\"id\":\"Gateway_0hr6uqh\",\"prop\":{\"x\":1180,\"y\":220,\"value\":\"并行网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":1180,\"y\":180}},\"flows\":[{\"conditionExpression\":\"\",\"id\":\"Flow_33u2dl1\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Event_1d42u4p\",\"target\":\"Activity_1sp8qc8\"},{\"conditionExpression\":\"\",\"id\":\"Flow_0a0l86o\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_1sp8qc8\",\"target\":\"Activity_0ktvocb\"},{\"conditionExpression\":\"\",\"id\":\"Flow_0vj10mg\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_0ktvocb\",\"target\":\"Gateway_3hc78r0\"},{\"conditionExpression\":\"\",\"id\":\"Flow_0kq3dbj\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_3hc78r0\",\"target\":\"Activity_2hdlllg\"},{\"conditionExpression\":\"\",\"id\":\"Flow_07mm96i\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_3hc78r0\",\"target\":\"Activity_09b3p19\"},{\"conditionExpression\":\"\",\"id\":\"Flow_2ja8jve\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_2hdlllg\",\"target\":\"Gateway_0hr6uqh\"},{\"conditionExpression\":\"\",\"id\":\"Flow_2oh66rv\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_09b3p19\",\"target\":\"Gateway_0hr6uqh\"},{\"conditionExpression\":\"\",\"id\":\"Flow_3qlcank\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_0hr6uqh\",\"target\":\"Event_08p8i6q\"}]}','75a4b0d2-2b8b-11ee-a141-e6ff8d6f4458','0','instant',NULL,NULL,NULL,NULL,'2023-07-27 15:00:46','2023-07-24 15:54:47');


insert into `biz_flow_def_his` (`process_type`, `process_name`, `process_desc`, `process_cate`, `tenant_id`, `in_param`, `flow_config`, `deployee_id`, `is_lock`, `period`, `time_start`, `time_end`, `call_cycle`, `cycle_unit`, `update_at`, `create_at`) values('YuHangAiTransmiss','御航输电线路图片检测(不要删除)','getYuHangAiTransmissionDefect','custom','','[{\"paramName\":\"missionId\",\"valDesc\":\"作业id\"}]','{\"elements\":[{\"id\":\"Event_1d42u4p\",\"name\":\"开始\",\"taskNodeConfig\":{},\"type\":\"start\"},{\"id\":\"Event_08p8i6q\",\"name\":\"结束\",\"taskNodeConfig\":{},\"type\":\"end\"},{\"id\":\"Activity_1sp8qc8\",\"name\":\"御航输电线路图片检测\",\"taskNodeConfig\":{\"taskType\":\"YuHangAiTransmission\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"},{\"paramName\":\"SYS_IGNORE_ERROR\",\"paramType\":\"fixed\",\"val\":\"true\"},{\"paramName\":\"SYS_IGNORE_FAIL\",\"paramType\":\"fixed\",\"val\":\"true\"}]},\"type\":\"task\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_1ubee0b\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_2o3tp1a\",\"name\":\"获取资源锁5小时\",\"taskNodeConfig\":{\"taskType\":\"lockRes\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"\",\"paramName\":\"group\",\"paramType\":\"fixed\",\"val\":\"mission\"},{\"fromParamName\":\"yuhangjiekou\",\"paramName\":\"resId\",\"paramType\":\"fixed\",\"val\":\"yuhangjiekou4\"},{\"paramName\":\"waitTime\",\"paramType\":\"fixed\",\"val\":\"5\"},{\"fromParamName\":\"18000\",\"paramName\":\"lockTime\",\"paramType\":\"fixed\",\"val\":\"18000\"}]},\"type\":\"task\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_29rkip2\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_18rsl02\",\"name\":\"发送告警短信\",\"taskNodeConfig\":{\"taskType\":\"sendWarnSms\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"fixed\",\"val\":\"18628380221\"},{\"paramName\":\"tplCode\",\"paramType\":\"fixed\",\"val\":\"bizproc_warn_sms\"},{\"fromParamName\":\"warnInfo\",\"paramName\":\"warnInfo\",\"paramType\":\"fixed\",\"val\":\"御航输电线路图片检测接口调用失败\"},{\"fromParamName\":\"validation环境\",\"paramName\":\"envName\",\"paramType\":\"fixed\",\"val\":\"uat\"}]},\"type\":\"task\"}],\"flowLineCoordinate\":{\"Flow_18eq5br\":{\"endPoint\":{\"x\":510.0,\"y\":160.0},\"id\":\"Flow_18eq5br\",\"startPoint\":{\"x\":338.0,\"y\":160.0}},\"Flow_2bijlvq\":{\"endPoint\":{\"x\":715.0,\"y\":160.0},\"id\":\"Flow_2bijlvq\",\"startPoint\":{\"x\":610.0,\"y\":160.0}},\"Flow_05tkjee\":{\"endPoint\":{\"x\":740.0,\"y\":320.0},\"id\":\"Flow_05tkjee\",\"prop\":{\"x\":740,\"y\":253,\"value\":\"${code!=0}\"},\"startPoint\":{\"x\":740.0,\"y\":185.0}},\"Flow_1bferfg\":{\"endPoint\":{\"x\":1202.0,\"y\":160.0},\"id\":\"Flow_1bferfg\",\"prop\":{\"x\":1037,\"y\":160,\"value\":\"${code==0}\"},\"startPoint\":{\"x\":765.0,\"y\":160.0}},\"Flow_03mulma\":{\"endPoint\":{\"x\":935.0,\"y\":360.0},\"id\":\"Flow_03mulma\",\"startPoint\":{\"x\":790.0,\"y\":360.0}},\"Flow_1ba1jr5\":{\"endPoint\":{\"x\":1220.0,\"y\":178.0},\"id\":\"Flow_1ba1jr5\",\"prop\":{\"x\":1082,\"y\":360,\"value\":\"${success==false}\"},\"startPoint\":{\"x\":985.0,\"y\":360.0}},\"Flow_1ssfnh3\":{\"endPoint\":{\"x\":960.0,\"y\":500.0},\"id\":\"Flow_1ssfnh3\",\"prop\":{\"x\":960,\"y\":443,\"value\":\"${success==true}\"},\"startPoint\":{\"x\":960.0,\"y\":385.0}},\"Flow_3b33i2l\":{\"endPoint\":{\"x\":1220.0,\"y\":178.0},\"id\":\"Flow_3b33i2l\",\"startPoint\":{\"x\":1010.0,\"y\":540.0}}},\"flowNodeCoordinate\":{\"Event_1d42u4p\":{\"id\":\"Event_1d42u4p\",\"prop\":{\"x\":320,\"y\":160,\"value\":\"开始\"},\"type\":\"bpmn:startEvent\",\"x\":320,\"y\":160},\"Event_08p8i6q\":{\"id\":\"Event_08p8i6q\",\"prop\":{\"x\":1220,\"y\":160,\"value\":\"结束\"},\"type\":\"bpmn:endEvent\",\"x\":1220,\"y\":160},\"Activity_1sp8qc8\":{\"id\":\"Activity_1sp8qc8\",\"prop\":{\"x\":560,\"y\":160,\"value\":\"御航输电线路图片检测\"},\"type\":\"bpmn:serviceTask\",\"x\":560,\"y\":160},\"Gateway_1ubee0b\":{\"id\":\"Gateway_1ubee0b\",\"prop\":{\"x\":740,\"y\":200,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":740,\"y\":160},\"Activity_2o3tp1a\":{\"id\":\"Activity_2o3tp1a\",\"prop\":{\"x\":740,\"y\":360,\"value\":\"获取资源锁5小时\"},\"type\":\"bpmn:serviceTask\",\"x\":740,\"y\":360},\"Gateway_29rkip2\":{\"id\":\"Gateway_29rkip2\",\"prop\":{\"x\":960,\"y\":400,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":960,\"y\":360},\"Activity_18rsl02\":{\"id\":\"Activity_18rsl02\",\"prop\":{\"x\":960,\"y\":540,\"value\":\"发送告警短信\"},\"type\":\"bpmn:serviceTask\",\"x\":960,\"y\":540}},\"flows\":[{\"conditionExpression\":\"\",\"id\":\"Flow_18eq5br\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Event_1d42u4p\",\"target\":\"Activity_1sp8qc8\"},{\"conditionExpression\":\"\",\"id\":\"Flow_2bijlvq\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_1sp8qc8\",\"target\":\"Gateway_1ubee0b\"},{\"conditionExpression\":\"${code!=0}\",\"id\":\"Flow_05tkjee\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1ubee0b\",\"target\":\"Activity_2o3tp1a\"},{\"conditionExpression\":\"${code==0}\",\"id\":\"Flow_1bferfg\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1ubee0b\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"\",\"id\":\"Flow_03mulma\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_2o3tp1a\",\"target\":\"Gateway_29rkip2\"},{\"conditionExpression\":\"${success==false}\",\"id\":\"Flow_1ba1jr5\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_29rkip2\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"${success==true}\",\"id\":\"Flow_1ssfnh3\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_29rkip2\",\"target\":\"Activity_18rsl02\"},{\"conditionExpression\":\"\",\"id\":\"Flow_3b33i2l\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_18rsl02\",\"target\":\"Event_08p8i6q\"}]}','a29ae1a1-3291-11ee-851c-22eeea72e24d','1','instant',NULL,NULL,NULL,NULL,'2023-08-04 14:39:18','2023-07-20 17:17:08');
insert into `biz_flow_def_his` (`process_type`, `process_name`, `process_desc`, `process_cate`, `tenant_id`, `in_param`, `flow_config`, `deployee_id`, `is_lock`, `period`, `time_start`, `time_end`, `call_cycle`, `cycle_unit`, `update_at`, `create_at`) values('leaveTest','请假','请假（别删除）','custom','','[{\"paramName\":\"name\",\"valDesc\":\"姓名\"},{\"paramName\":\"phone\",\"valDesc\":\"手机号\"},{\"paramName\":\"leaveDay\",\"valDesc\":\"请假天数\"},{\"paramName\":\"reason\",\"valDesc\":\"请假理由\"}]','{\"elements\":[{\"id\":\"Event_1d42u4p\",\"name\":\"开始\",\"taskNodeConfig\":{},\"type\":\"start\"},{\"id\":\"Event_08p8i6q\",\"name\":\"结束\",\"taskNodeConfig\":{},\"type\":\"end\"},{\"id\":\"Activity_1sp8qc8\",\"name\":\"填写请假信息\",\"taskNodeConfig\":{\"taskType\":\"testFillLeaveInfo\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"name\",\"paramName\":\"name\",\"paramType\":\"variable\"},{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"variable\"},{\"fromParamName\":\"leaveDay\",\"paramName\":\"leaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"reason\",\"paramName\":\"reason\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"id\":\"Activity_0pnu5ht\",\"name\":\"计算剩余年假\",\"taskNodeConfig\":{\"taskType\":\"tesQueryAwailableDay\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"variable\"},{\"fromParamName\":\"leaveDay\",\"paramName\":\"leaveDay\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_2mhf61j\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_025dfsk\",\"name\":\"系统审批\",\"taskNodeConfig\":{\"taskType\":\"testSysApproval\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"name\",\"paramName\":\"name\",\"paramType\":\"variable\"},{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"variable\"},{\"fromParamName\":\"leaveDay\",\"paramName\":\"leaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"totalLeaveDay\",\"paramName\":\"totalLeaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"reason\",\"paramName\":\"reason\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"id\":\"Activity_3fm5ah9\",\"name\":\"经理审批\",\"taskNodeConfig\":{\"taskType\":\"testManagerApproval\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"name\",\"paramName\":\"name\",\"paramType\":\"variable\"},{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"variable\"},{\"fromParamName\":\"leaveDay\",\"paramName\":\"leaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"totalLeaveDay\",\"paramName\":\"totalLeaveDay\",\"paramType\":\"variable\"},{\"fromParamName\":\"reason\",\"paramName\":\"reason\",\"paramType\":\"variable\"}]},\"type\":\"task\"}],\"flowLineCoordinate\":{\"Flow_2820fe5\":{\"endPoint\":{\"x\":290.0,\"y\":200.0},\"id\":\"Flow_2820fe5\",\"startPoint\":{\"x\":158.0,\"y\":200.0}},\"Flow_1fgq78l\":{\"endPoint\":{\"x\":510.0,\"y\":200.0},\"id\":\"Flow_1fgq78l\",\"startPoint\":{\"x\":390.0,\"y\":200.0}},\"Flow_0ebukg8\":{\"endPoint\":{\"x\":735.0,\"y\":200.0},\"id\":\"Flow_0ebukg8\",\"startPoint\":{\"x\":610.0,\"y\":200.0}},\"Flow_0raqhk3\":{\"endPoint\":{\"x\":930.0,\"y\":100.0},\"id\":\"Flow_0raqhk3\",\"prop\":{\"x\":790,\"y\":100,\"value\":\"${totalLeaveDay<3}\"},\"startPoint\":{\"x\":760.0,\"y\":175.0}},\"Flow_0a7m4pt\":{\"endPoint\":{\"x\":930.0,\"y\":280.0},\"id\":\"Flow_0a7m4pt\",\"prop\":{\"x\":824,\"y\":280,\"value\":\"${totalLeaveDay>2}\"},\"startPoint\":{\"x\":760.0,\"y\":225.0}},\"Flow_24nsh7q\":{\"endPoint\":{\"x\":1202.0,\"y\":200.0},\"id\":\"Flow_24nsh7q\",\"startPoint\":{\"x\":1030.0,\"y\":280.0}},\"Flow_3mk9ddu\":{\"endPoint\":{\"x\":1202.0,\"y\":200.0},\"id\":\"Flow_3mk9ddu\",\"startPoint\":{\"x\":1030.0,\"y\":100.0}}},\"flowNodeCoordinate\":{\"Event_1d42u4p\":{\"id\":\"Event_1d42u4p\",\"prop\":{\"x\":140,\"y\":200,\"value\":\"开始\"},\"type\":\"bpmn:startEvent\",\"x\":140,\"y\":200},\"Event_08p8i6q\":{\"id\":\"Event_08p8i6q\",\"prop\":{\"x\":1220,\"y\":200,\"value\":\"结束\"},\"type\":\"bpmn:endEvent\",\"x\":1220,\"y\":200},\"Activity_1sp8qc8\":{\"id\":\"Activity_1sp8qc8\",\"prop\":{\"x\":340,\"y\":200,\"value\":\"填写请假信息\"},\"type\":\"bpmn:serviceTask\",\"x\":340,\"y\":200},\"Activity_0pnu5ht\":{\"id\":\"Activity_0pnu5ht\",\"prop\":{\"x\":560,\"y\":200,\"value\":\"计算剩余年假\"},\"type\":\"bpmn:serviceTask\",\"x\":560,\"y\":200},\"Gateway_2mhf61j\":{\"id\":\"Gateway_2mhf61j\",\"prop\":{\"x\":760,\"y\":240,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":760,\"y\":200},\"Activity_025dfsk\":{\"id\":\"Activity_025dfsk\",\"prop\":{\"x\":980,\"y\":100,\"value\":\"系统审批\"},\"type\":\"bpmn:serviceTask\",\"x\":980,\"y\":100},\"Activity_3fm5ah9\":{\"id\":\"Activity_3fm5ah9\",\"prop\":{\"x\":980,\"y\":280,\"value\":\"经理审批\"},\"type\":\"bpmn:serviceTask\",\"x\":980,\"y\":280}},\"flows\":[{\"conditionExpression\":\"\",\"id\":\"Flow_2820fe5\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Event_1d42u4p\",\"target\":\"Activity_1sp8qc8\"},{\"conditionExpression\":\"\",\"id\":\"Flow_1fgq78l\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_1sp8qc8\",\"target\":\"Activity_0pnu5ht\"},{\"conditionExpression\":\"\",\"id\":\"Flow_0ebukg8\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_0pnu5ht\",\"target\":\"Gateway_2mhf61j\"},{\"conditionExpression\":\"${totalLeaveDay<3}\",\"id\":\"Flow_0raqhk3\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_2mhf61j\",\"target\":\"Activity_025dfsk\"},{\"conditionExpression\":\"${totalLeaveDay>2}\",\"id\":\"Flow_0a7m4pt\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_2mhf61j\",\"target\":\"Activity_3fm5ah9\"},{\"conditionExpression\":\"\",\"id\":\"Flow_24nsh7q\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_3fm5ah9\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"\",\"id\":\"Flow_3mk9ddu\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_025dfsk\",\"target\":\"Event_08p8i6q\"}]}','0d34cdd4-1fb5-11ee-923f-723ca4007577','1','instant',NULL,NULL,NULL,NULL,'2023-07-11 14:34:57','2023-07-11 14:34:36');
insert into `biz_flow_def_his` (`process_type`, `process_name`, `process_desc`, `process_cate`, `tenant_id`, `in_param`, `flow_config`, `deployee_id`, `is_lock`, `period`, `time_start`, `time_end`, `call_cycle`, `cycle_unit`, `update_at`, `create_at`) values('missionEndProcess','作业结束处理流程(不要删除)','作业结束后处理流程.\n关闭ai，保存ai数据；合成视频；发送报告','custom','','[{\"paramName\":\"missionId\",\"valDesc\":\"作业id\"},{\"paramName\":\"companyId\",\"valDesc\":\"结束作业的公司id\"},{\"paramName\":\"userId\",\"valDesc\":\"结束作业的用户id\"},{\"paramName\":\"missionEndOccur\",\"valDesc\":\"是否来自系统自动触发\"}]','{\"elements\":[{\"id\":\"Event_1d42u4p\",\"name\":\"开始\",\"taskNodeConfig\":{},\"type\":\"start\"},{\"id\":\"Event_08p8i6q\",\"name\":\"结束\",\"taskNodeConfig\":{},\"type\":\"end\"},{\"id\":\"Activity_1sp8qc8\",\"name\":\"停止AI及保存AI数据\",\"taskNodeConfig\":{\"taskType\":\"stopMissionAI2SaveDa\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"userId\",\"paramName\":\"userId\",\"paramType\":\"variable\"},{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"},{\"paramName\":\"SYS_IGNORE_FAIL\",\"paramType\":\"fixed\",\"val\":\"true\"},{\"paramName\":\"SYS_IGNORE_ERROR\",\"paramType\":\"fixed\",\"val\":\"true\"}]},\"type\":\"task\"},{\"id\":\"Activity_0ktvocb\",\"name\":\"提交视频合成任务\",\"taskNodeConfig\":{\"taskType\":\"mergeVideo\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"gateWayType\":\"Parallel\",\"id\":\"Gateway_3hc78r0\",\"name\":\"并行网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_2hdlllg\",\"name\":\"发送作业报告给用户\",\"taskNodeConfig\":{\"taskType\":\"sendMissionReport\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"},{\"fromParamName\":\"missionEndOccur\",\"paramName\":\"missionEndOccur\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"id\":\"Activity_09b3p19\",\"name\":\"发送报告到指定地址（湘潭定制生效）\",\"taskNodeConfig\":{\"taskType\":\"reportToCustomizedAd\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"missionId\",\"paramName\":\"missionId\",\"paramType\":\"variable\"}]},\"type\":\"task\"},{\"gateWayType\":\"Parallel\",\"id\":\"Gateway_0hr6uqh\",\"name\":\"并行网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"}],\"flowLineCoordinate\":{\"Flow_33u2dl1\":{\"endPoint\":{\"x\":390.0,\"y\":180.0},\"id\":\"Flow_33u2dl1\",\"startPoint\":{\"x\":258.0,\"y\":180.0}},\"Flow_0a0l86o\":{\"endPoint\":{\"x\":610.0,\"y\":180.0},\"id\":\"Flow_0a0l86o\",\"startPoint\":{\"x\":490.0,\"y\":180.0}},\"Flow_0vj10mg\":{\"endPoint\":{\"x\":795.0,\"y\":180.0},\"id\":\"Flow_0vj10mg\",\"startPoint\":{\"x\":710.0,\"y\":180.0}},\"Flow_0kq3dbj\":{\"endPoint\":{\"x\":950.0,\"y\":100.0},\"id\":\"Flow_0kq3dbj\",\"startPoint\":{\"x\":820.0,\"y\":155.0}},\"Flow_07mm96i\":{\"endPoint\":{\"x\":950.0,\"y\":280.0},\"id\":\"Flow_07mm96i\",\"startPoint\":{\"x\":820.0,\"y\":205.0}},\"Flow_2ja8jve\":{\"endPoint\":{\"x\":1180.0,\"y\":155.0},\"id\":\"Flow_2ja8jve\",\"startPoint\":{\"x\":1050.0,\"y\":100.0}},\"Flow_2oh66rv\":{\"endPoint\":{\"x\":1180.0,\"y\":205.0},\"id\":\"Flow_2oh66rv\",\"startPoint\":{\"x\":1050.0,\"y\":280.0}},\"Flow_3qlcank\":{\"endPoint\":{\"x\":1302.0,\"y\":180.0},\"id\":\"Flow_3qlcank\",\"startPoint\":{\"x\":1205.0,\"y\":180.0}}},\"flowNodeCoordinate\":{\"Event_1d42u4p\":{\"id\":\"Event_1d42u4p\",\"prop\":{\"x\":240,\"y\":180,\"value\":\"开始\"},\"type\":\"bpmn:startEvent\",\"x\":240,\"y\":180},\"Event_08p8i6q\":{\"id\":\"Event_08p8i6q\",\"prop\":{\"x\":1320,\"y\":180,\"value\":\"结束\"},\"type\":\"bpmn:endEvent\",\"x\":1320,\"y\":180},\"Activity_1sp8qc8\":{\"id\":\"Activity_1sp8qc8\",\"prop\":{\"x\":440,\"y\":180,\"value\":\"停止AI及保存AI数据\"},\"type\":\"bpmn:serviceTask\",\"x\":440,\"y\":180},\"Activity_0ktvocb\":{\"id\":\"Activity_0ktvocb\",\"prop\":{\"x\":660,\"y\":180,\"value\":\"提交视频合成任务\"},\"type\":\"bpmn:serviceTask\",\"x\":660,\"y\":180},\"Gateway_3hc78r0\":{\"id\":\"Gateway_3hc78r0\",\"prop\":{\"x\":820,\"y\":220,\"value\":\"并行网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":820,\"y\":180},\"Activity_2hdlllg\":{\"id\":\"Activity_2hdlllg\",\"prop\":{\"x\":1000,\"y\":100,\"value\":\"发送作业报告给用户\"},\"type\":\"bpmn:serviceTask\",\"x\":1000,\"y\":100},\"Activity_09b3p19\":{\"id\":\"Activity_09b3p19\",\"prop\":{\"x\":1000,\"y\":280,\"value\":\"发送报告到指定地址（湘潭定制生效）\"},\"type\":\"bpmn:serviceTask\",\"x\":1000,\"y\":280},\"Gateway_0hr6uqh\":{\"id\":\"Gateway_0hr6uqh\",\"prop\":{\"x\":1180,\"y\":220,\"value\":\"并行网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":1180,\"y\":180}},\"flows\":[{\"conditionExpression\":\"\",\"id\":\"Flow_33u2dl1\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Event_1d42u4p\",\"target\":\"Activity_1sp8qc8\"},{\"conditionExpression\":\"\",\"id\":\"Flow_0a0l86o\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_1sp8qc8\",\"target\":\"Activity_0ktvocb\"},{\"conditionExpression\":\"\",\"id\":\"Flow_0vj10mg\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_0ktvocb\",\"target\":\"Gateway_3hc78r0\"},{\"conditionExpression\":\"\",\"id\":\"Flow_0kq3dbj\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_3hc78r0\",\"target\":\"Activity_2hdlllg\"},{\"conditionExpression\":\"\",\"id\":\"Flow_07mm96i\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_3hc78r0\",\"target\":\"Activity_09b3p19\"},{\"conditionExpression\":\"\",\"id\":\"Flow_2ja8jve\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_2hdlllg\",\"target\":\"Gateway_0hr6uqh\"},{\"conditionExpression\":\"\",\"id\":\"Flow_2oh66rv\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_09b3p19\",\"target\":\"Gateway_0hr6uqh\"},{\"conditionExpression\":\"\",\"id\":\"Flow_3qlcank\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_0hr6uqh\",\"target\":\"Event_08p8i6q\"}]}','75a4b0d2-2b8b-11ee-a141-e6ff8d6f4458','0','instant',NULL,NULL,NULL,NULL,'2023-07-26 16:07:27','2023-07-24 15:54:47');

insert into `act_re_deployment` (`ID_`, `NAME_`, `CATEGORY_`, `KEY_`, `TENANT_ID_`, `DEPLOY_TIME_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `PARENT_DEPLOYMENT_ID_`, `ENGINE_VERSION_`) values('a29ae1a1-3291-11ee-851c-22eeea72e24d','御航输电线路图片检测(不要删除)','bizflow','YuHangAiTransmiss_bz_','f_','2023-08-04 14:39:17.476',NULL,NULL,NULL,NULL);
insert into `act_re_deployment` (`ID_`, `NAME_`, `CATEGORY_`, `KEY_`, `TENANT_ID_`, `DEPLOY_TIME_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `PARENT_DEPLOYMENT_ID_`, `ENGINE_VERSION_`) values('0d34cdd4-1fb5-11ee-923f-723ca4007577','请假','bizflow','leaveTest_bz_','f_','2023-07-11 14:34:56.617',NULL,NULL,NULL,NULL);
insert into `act_re_deployment` (`ID_`, `NAME_`, `CATEGORY_`, `KEY_`, `TENANT_ID_`, `DEPLOY_TIME_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `PARENT_DEPLOYMENT_ID_`, `ENGINE_VERSION_`) values('75a4b0d2-2b8b-11ee-a141-e6ff8d6f4458','作业结束处理流程(不要删除)','bizflow','missionEndProcess_bz_','f_','2023-07-26 16:07:26.924',NULL,NULL,NULL,NULL);


insert into `act_re_procdef` (`ID_`, `REV_`, `CATEGORY_`, `NAME_`, `KEY_`, `VERSION_`, `DEPLOYMENT_ID_`, `RESOURCE_NAME_`, `DGRM_RESOURCE_NAME_`, `DESCRIPTION_`, `HAS_START_FORM_KEY_`, `HAS_GRAPHICAL_NOTATION_`, `SUSPENSION_STATE_`, `TENANT_ID_`, `ENGINE_VERSION_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `DERIVED_VERSION_`) values('YuHangAiTransmiss_bz_:3:a2aeb7c3-3291-11ee-851c-22eeea72e24d','1','http://www.flowable.org/test','YuHangAiTransmiss','YuHangAiTransmiss_bz_','3','a29ae1a1-3291-11ee-851c-22eeea72e24d','YuHangAiTransmiss_bz_.bpmn',NULL,NULL,'0','0','1','f_',NULL,NULL,NULL,'0');
insert into `act_re_procdef` (`ID_`, `REV_`, `CATEGORY_`, `NAME_`, `KEY_`, `VERSION_`, `DEPLOYMENT_ID_`, `RESOURCE_NAME_`, `DGRM_RESOURCE_NAME_`, `DESCRIPTION_`, `HAS_START_FORM_KEY_`, `HAS_GRAPHICAL_NOTATION_`, `SUSPENSION_STATE_`, `TENANT_ID_`, `ENGINE_VERSION_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `DERIVED_VERSION_`) values('leaveTest_bz_:2:0d382936-1fb5-11ee-923f-723ca4007577','1','http://www.flowable.org/test','leaveTest','leaveTest_bz_','2','0d34cdd4-1fb5-11ee-923f-723ca4007577','leaveTest_bz_.bpmn',NULL,NULL,'0','0','1','f_',NULL,NULL,NULL,'0');
insert into `act_re_procdef` (`ID_`, `REV_`, `CATEGORY_`, `NAME_`, `KEY_`, `VERSION_`, `DEPLOYMENT_ID_`, `RESOURCE_NAME_`, `DGRM_RESOURCE_NAME_`, `DESCRIPTION_`, `HAS_START_FORM_KEY_`, `HAS_GRAPHICAL_NOTATION_`, `SUSPENSION_STATE_`, `TENANT_ID_`, `ENGINE_VERSION_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `DERIVED_VERSION_`) values('missionEndProcess_bz_:5:75b1f744-2b8b-11ee-a141-e6ff8d6f4458','1','http://www.flowable.org/test','missionEndProcess','missionEndProcess_bz_','5','75a4b0d2-2b8b-11ee-a141-e6ff8d6f4458','missionEndProcess_bz_.bpmn',NULL,NULL,'0','0','1','f_',NULL,NULL,NULL,'0');


insert into `act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) values('a29ae1a2-3291-11ee-851c-22eeea72e24d','1','YuHangAiTransmiss_bz_.bpmn','a29ae1a1-3291-11ee-851c-22eeea72e24d','<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" typeLanguage=\"http://www.w3.org/2001/XMLSchema\" expressionLanguage=\"http://www.w3.org/1999/XPath\" targetNamespace=\"http://www.flowable.org/test\">\n  <process id=\"YuHangAiTransmiss_bz_\" name=\"YuHangAiTransmiss\" isExecutable=\"true\">\n    <startEvent id=\"Event_1d42u4p\" name=\"开始\"></startEvent>\n    <endEvent id=\"Event_08p8i6q\" name=\"结束\">\n      <extensionElements>\n        <flowable:executionListener event=\"end\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessEndHandler\"></flowable:executionListener>\n      </extensionElements>\n    </endEvent>\n    <userTask id=\"Activity_1sp8qc8\" name=\"御航输电线路图片检测\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <exclusiveGateway id=\"Gateway_1ubee0b\" name=\"排他网关\"></exclusiveGateway>\n    <userTask id=\"Activity_2o3tp1a\" name=\"获取资源锁5小时\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <exclusiveGateway id=\"Gateway_29rkip2\" name=\"排他网关\"></exclusiveGateway>\n    <userTask id=\"Activity_18rsl02\" name=\"发送告警短信\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <sequenceFlow id=\"Flow_18eq5br\" name=\"bpmn:sequenceFlow\" sourceRef=\"Event_1d42u4p\" targetRef=\"Activity_1sp8qc8\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_2bijlvq\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_1sp8qc8\" targetRef=\"Gateway_1ubee0b\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_05tkjee\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_1ubee0b\" targetRef=\"Activity_2o3tp1a\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${code!=0}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_1bferfg\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_1ubee0b\" targetRef=\"Event_08p8i6q\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${code==0}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_03mulma\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_2o3tp1a\" targetRef=\"Gateway_29rkip2\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_1ba1jr5\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_29rkip2\" targetRef=\"Event_08p8i6q\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${success==false}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_1ssfnh3\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_29rkip2\" targetRef=\"Activity_18rsl02\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${success==true}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_3b33i2l\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_18rsl02\" targetRef=\"Event_08p8i6q\"></sequenceFlow>\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_YuHangAiTransmiss_bz_\">\n    <bpmndi:BPMNPlane bpmnElement=\"YuHangAiTransmiss_bz_\" id=\"BPMNPlane_YuHangAiTransmiss_bz_\"></bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>','0');
insert into `act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) values('0d34cdd5-1fb5-11ee-923f-723ca4007577','1','leaveTest_bz_.bpmn','0d34cdd4-1fb5-11ee-923f-723ca4007577','<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" typeLanguage=\"http://www.w3.org/2001/XMLSchema\" expressionLanguage=\"http://www.w3.org/1999/XPath\" targetNamespace=\"http://www.flowable.org/test\">\n  <process id=\"leaveTest_bz_\" name=\"leaveTest\" isExecutable=\"true\">\n    <startEvent id=\"Event_1d42u4p\" name=\"开始\"></startEvent>\n    <endEvent id=\"Event_08p8i6q\" name=\"结束\">\n      <extensionElements>\n        <flowable:executionListener event=\"end\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessEndHandler\"></flowable:executionListener>\n      </extensionElements>\n    </endEvent>\n    <userTask id=\"Activity_1sp8qc8\" name=\"填写请假信息\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <userTask id=\"Activity_0pnu5ht\" name=\"计算剩余年假\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <exclusiveGateway id=\"Gateway_2mhf61j\" name=\"排他网关\"></exclusiveGateway>\n    <userTask id=\"Activity_025dfsk\" name=\"系统审批\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <userTask id=\"Activity_3fm5ah9\" name=\"经理审批\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <sequenceFlow id=\"Flow_2820fe5\" name=\"bpmn:sequenceFlow\" sourceRef=\"Event_1d42u4p\" targetRef=\"Activity_1sp8qc8\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_1fgq78l\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_1sp8qc8\" targetRef=\"Activity_0pnu5ht\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_0ebukg8\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_0pnu5ht\" targetRef=\"Gateway_2mhf61j\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_0raqhk3\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_2mhf61j\" targetRef=\"Activity_025dfsk\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${totalLeaveDay<3}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_0a7m4pt\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_2mhf61j\" targetRef=\"Activity_3fm5ah9\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${totalLeaveDay>2}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_24nsh7q\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_3fm5ah9\" targetRef=\"Event_08p8i6q\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_3mk9ddu\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_025dfsk\" targetRef=\"Event_08p8i6q\"></sequenceFlow>\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_leaveTest_bz_\">\n    <bpmndi:BPMNPlane bpmnElement=\"leaveTest_bz_\" id=\"BPMNPlane_leaveTest_bz_\"></bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>','0');
insert into `act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) values('75a4b0d3-2b8b-11ee-a141-e6ff8d6f4458','1','missionEndProcess_bz_.bpmn','75a4b0d2-2b8b-11ee-a141-e6ff8d6f4458','<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" typeLanguage=\"http://www.w3.org/2001/XMLSchema\" expressionLanguage=\"http://www.w3.org/1999/XPath\" targetNamespace=\"http://www.flowable.org/test\">\n  <process id=\"missionEndProcess_bz_\" name=\"missionEndProcess\" isExecutable=\"true\">\n    <startEvent id=\"Event_1d42u4p\" name=\"开始\"></startEvent>\n    <endEvent id=\"Event_08p8i6q\" name=\"结束\">\n      <extensionElements>\n        <flowable:executionListener event=\"end\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessEndHandler\"></flowable:executionListener>\n      </extensionElements>\n    </endEvent>\n    <userTask id=\"Activity_1sp8qc8\" name=\"停止AI及保存AI数据\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <userTask id=\"Activity_0ktvocb\" name=\"提交视频合成任务\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <parallelGateway id=\"Gateway_3hc78r0\" name=\"并行网关\"></parallelGateway>\n    <userTask id=\"Activity_2hdlllg\" name=\"发送作业报告给用户\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <userTask id=\"Activity_09b3p19\" name=\"发送报告到指定地址（湘潭定制生效）\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <parallelGateway id=\"Gateway_0hr6uqh\" name=\"并行网关\"></parallelGateway>\n    <sequenceFlow id=\"Flow_33u2dl1\" name=\"bpmn:sequenceFlow\" sourceRef=\"Event_1d42u4p\" targetRef=\"Activity_1sp8qc8\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_0a0l86o\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_1sp8qc8\" targetRef=\"Activity_0ktvocb\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_0vj10mg\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_0ktvocb\" targetRef=\"Gateway_3hc78r0\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_0kq3dbj\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_3hc78r0\" targetRef=\"Activity_2hdlllg\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_07mm96i\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_3hc78r0\" targetRef=\"Activity_09b3p19\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_2ja8jve\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_2hdlllg\" targetRef=\"Gateway_0hr6uqh\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_2oh66rv\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_09b3p19\" targetRef=\"Gateway_0hr6uqh\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_3qlcank\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_0hr6uqh\" targetRef=\"Event_08p8i6q\"></sequenceFlow>\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_missionEndProcess_bz_\">\n    <bpmndi:BPMNPlane bpmnElement=\"missionEndProcess_bz_\" id=\"BPMNPlane_missionEndProcess_bz_\"></bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>','0');




insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('applyDeviceLive','申请更新视频流信息','创建新的视频流设备或者更新已有的视频流设备配置信息。','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-cloud-live\",\"url\":\"/client/live/stream/createStream\"}','','[{\"paramName\":\"deviceCode\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"companyId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"engineCode\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"streamHub\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"userId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"record\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"save\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"loadModelName\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"gdrTranscode\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"uavModelName\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"uavType\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"uavCode\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"}]','0','2023-10-07 16:48:13','2023-10-07 10:37:18');
insert into `biz_task_def` (`task_type`, `task_name`, `task_desc`, `task_cate`, `interface_type`, `service_info`, `tenant_id`, `in_param`, `out_param`, `is_lock`, `update_at`, `create_at`) values('bizLogSave','业务日志保存任务','业务日志保存接口','sys','feign','{\"method\":\"post\",\"serviceName\":\"cmii-uav-logger\",\"url\":\"/logger/saveBizLog\"}','','[{\"paramName\":\"appId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"logTime\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"userId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"companyId\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"category\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"subCategory\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"operateName\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"operateIdentity\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"operateValue\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"operateResult\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"operateDescMap\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"operateTime\",\"paramType\":\"variable\",\"val\":\"\"},{\"paramName\":\"lang\",\"paramType\":\"variable\",\"val\":\"\"}]','[{\"paramName\":\"code\",\"srcName\":\"code\"}]','0','2023-10-07 10:26:06','2023-10-07 10:21:32');

insert into `biz_flow_def` (`process_type`, `process_name`, `process_desc`, `process_cate`, `tenant_id`, `in_param`, `flow_config`, `deployee_id`, `is_lock`, `period`, `time_start`, `time_end`, `call_cycle`, `cycle_unit`, `update_at`, `create_at`) values('updateDeviceProcess','载荷摄像头编辑操作流程(不删除)','载荷摄像头编辑操作流程','custom','','[{\"paramName\":\"appId\",\"valDesc\":\"appName\"},{\"paramName\":\"logTime\",\"valDesc\":\"时间戳ms\"},{\"paramName\":\"userId\",\"valDesc\":\"用户id\"},{\"paramName\":\"companyId\",\"valDesc\":\"公司Id\"},{\"paramName\":\"category\",\"valDesc\":\"分类\"},{\"paramName\":\"subCategory\",\"valDesc\":\"子分类\"},{\"paramName\":\"operateName\",\"valDesc\":\"操作名称\"},{\"paramName\":\"operateIdentity\",\"valDesc\":\"操作关联标识\"},{\"paramName\":\"operateValue\",\"valDesc\":\"operateValue\"},{\"paramName\":\"operateResult\",\"valDesc\":\"结果\"},{\"paramName\":\"operateDescMap\",\"valDesc\":\"operateDescMap\"},{\"paramName\":\"operateTime\",\"valDesc\":\"操作时间\"},{\"paramName\":\"lang\",\"valDesc\":\"语音\"},{\"paramName\":\"deviceCode\",\"valDesc\":\"设备编号\"},{\"paramName\":\"engineCode\",\"valDesc\":\"uav\"},{\"paramName\":\"streamHub\",\"valDesc\":\"live\"},{\"paramName\":\"record\",\"valDesc\":\"是否录制\"},{\"paramName\":\"save\",\"valDesc\":\"是否保存\"},{\"paramName\":\"loadModelName\",\"valDesc\":\"摄像头类型\"},{\"paramName\":\"gdrTranscode\",\"valDesc\":\"是否gdr转码-1,不转码\"},{\"paramName\":\"uavModelName\",\"valDesc\":\"无人机类型\"},{\"paramName\":\"uavType\",\"valDesc\":\"uav即可\"},{\"paramName\":\"uavCode\",\"valDesc\":\"对应无人机编号\"},{\"paramName\":\"saveOpLog\",\"valDesc\":\"是否保存操作日志\"},{\"paramName\":\"updateStream\",\"valDesc\":\"是否请求流媒体服务\"}]','{\"elements\":[{\"id\":\"Event_1d42u4p\",\"name\":\"开始\",\"taskNodeConfig\":{},\"type\":\"start\"},{\"id\":\"Event_08p8i6q\",\"name\":\"结束\",\"taskNodeConfig\":{},\"type\":\"end\"},{\"gateWayType\":\"Inclusive\",\"id\":\"Gateway_1fngqgj\",\"name\":\"包容网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_6dbef63\",\"name\":\"更新视频流配置\",\"taskNodeConfig\":{\"taskType\":\"applyDeviceLive\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"deviceCode\",\"paramName\":\"deviceCode\",\"paramType\":\"variable\"},{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"engineCode\",\"paramName\":\"engineCode\",\"paramType\":\"variable\"},{\"fromParamName\":\"streamHub\",\"paramName\":\"streamHub\",\"paramType\":\"variable\"},{\"fromParamName\":\"userId\",\"paramName\":\"userId\",\"paramType\":\"variable\"},{\"fromParamName\":\"record\",\"paramName\":\"record\",\"paramType\":\"variable\"},{\"fromParamName\":\"save\",\"paramName\":\"save\",\"paramType\":\"variable\"},{\"fromParamName\":\"loadModelName\",\"paramName\":\"loadModelName\",\"paramType\":\"variable\"},{\"fromParamName\":\"gdrTranscode\",\"paramName\":\"gdrTranscode\",\"paramType\":\"variable\"},{\"fromParamName\":\"uavModelName\",\"paramName\":\"uavModelName\",\"paramType\":\"variable\"},{\"fromParamName\":\"uavType\",\"paramName\":\"uavType\",\"paramType\":\"variable\"},{\"fromParamName\":\"uavCode\",\"paramName\":\"uavCode\",\"paramType\":\"variable\"},{\"paramName\":\"SYS_IGNORE_FAIL\",\"paramType\":\"fixed\",\"val\":\"true\"},{\"paramName\":\"SYS_IGNORE_ERROR\",\"paramType\":\"fixed\",\"val\":\"true\"}]},\"type\":\"task\"},{\"id\":\"Activity_94e3eac\",\"name\":\"保存设备日志\",\"taskNodeConfig\":{\"taskType\":\"bizLogSave\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"appId\",\"paramName\":\"appId\",\"paramType\":\"variable\"},{\"fromParamName\":\"logTime\",\"paramName\":\"logTime\",\"paramType\":\"variable\"},{\"fromParamName\":\"userId\",\"paramName\":\"userId\",\"paramType\":\"variable\"},{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"category\",\"paramName\":\"category\",\"paramType\":\"variable\"},{\"fromParamName\":\"subCategory\",\"paramName\":\"subCategory\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateName\",\"paramName\":\"operateName\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateIdentity\",\"paramName\":\"operateIdentity\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateValue\",\"paramName\":\"operateValue\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateResult\",\"paramName\":\"operateResult\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateDescMap\",\"paramName\":\"operateDescMap\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateTime\",\"paramName\":\"operateTime\",\"paramType\":\"variable\"},{\"fromParamName\":\"lang\",\"paramName\":\"lang\",\"paramType\":\"variable\"},{\"paramName\":\"SYS_IGNORE_FAIL\",\"paramType\":\"fixed\",\"val\":\"true\"},{\"paramName\":\"SYS_IGNORE_ERROR\",\"paramType\":\"fixed\",\"val\":\"true\"}]},\"type\":\"task\"},{\"gateWayType\":\"Parallel\",\"id\":\"Gateway_3ea3847\",\"name\":\"并行网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_b28e5e3\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_f626c7e\",\"name\":\"获取资源锁5小时\",\"taskNodeConfig\":{\"taskType\":\"lockRes\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"cloudLive\",\"paramName\":\"group\",\"paramType\":\"fixed\",\"val\":\"cloudLive2\"},{\"fromParamName\":\"resId\",\"paramName\":\"resId\",\"paramType\":\"fixed\",\"val\":\"deviceCode\"},{\"paramName\":\"waitTime\",\"paramType\":\"fixed\",\"val\":\"5\"},{\"fromParamName\":\"18000\",\"paramName\":\"lockTime\",\"paramType\":\"fixed\",\"val\":\"18000\"}]},\"type\":\"task\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_0d85c0d\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_ddc6247\",\"name\":\"发送告警短信\",\"taskNodeConfig\":{\"taskType\":\"sendWarnSms\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"fixed\",\"val\":\"18628380221\"},{\"paramName\":\"tplCode\",\"paramType\":\"fixed\",\"val\":\"bizproc_warn_sms\"},{\"fromParamName\":\"warnInfo\",\"paramName\":\"warnInfo\",\"paramType\":\"fixed\",\"val\":\"视频流接口调用失败\"},{\"fromParamName\":\"envName\",\"paramName\":\"envName\",\"paramType\":\"fixed\",\"val\":\"生产环境\"}]},\"type\":\"task\"},{\"gateWayType\":\"Inclusive\",\"id\":\"Gateway_c15c75f\",\"name\":\"包容网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"}],\"flowLineCoordinate\":{\"Flow_b2a3f3b\":{\"endPoint\":{\"x\":355.0,\"y\":220.0},\"id\":\"Flow_b2a3f3b\",\"startPoint\":{\"x\":258.0,\"y\":220.0}},\"Flow_d7eab7c\":{\"endPoint\":{\"x\":570.0,\"y\":140.0},\"id\":\"Flow_d7eab7c\",\"startPoint\":{\"x\":380.0,\"y\":195.0}},\"Flow_3f2a7f5\":{\"endPoint\":{\"x\":570.0,\"y\":370.0},\"id\":\"Flow_3f2a7f5\",\"prop\":{\"x\":488,\"y\":370,\"value\":\"${saveOpLog==true}\"},\"startPoint\":{\"x\":380.0,\"y\":245.0}},\"Flow_db15d38\":{\"endPoint\":{\"x\":815.0,\"y\":140.0},\"id\":\"Flow_db15d38\",\"startPoint\":{\"x\":670.0,\"y\":140.0}},\"Flow_bf3905a\":{\"endPoint\":{\"x\":1050.0,\"y\":43.0},\"id\":\"Flow_bf3905a\",\"prop\":{\"x\":944.5,\"y\":43,\"value\":\"${code!=0}\"},\"startPoint\":{\"x\":839.0,\"y\":116.0}},\"Flow_6eba1cc\":{\"endPoint\":{\"x\":1275.0,\"y\":40.0},\"id\":\"Flow_6eba1cc\",\"startPoint\":{\"x\":1150.0,\"y\":40.0}},\"Flow_1503f42\":{\"endPoint\":{\"x\":1470.0,\"y\":40.0},\"id\":\"Flow_1503f42\",\"prop\":{\"x\":1397.5,\"y\":40,\"value\":\"${success==true}\"},\"startPoint\":{\"x\":1325.0,\"y\":40.0}},\"Flow_19fcd9d\":{\"endPoint\":{\"x\":1255.0,\"y\":280.0},\"id\":\"Flow_19fcd9d\",\"prop\":{\"x\":963,\"y\":280,\"value\":\"${code==0}\"},\"startPoint\":{\"x\":840.0,\"y\":165.0}},\"Flow_7bbd27e\":{\"endPoint\":{\"x\":1742.0277992443885,\"y\":279.0},\"id\":\"Flow_7bbd27e\",\"startPoint\":{\"x\":1305.0,\"y\":280.0}},\"Flow_cc88c4c\":{\"endPoint\":{\"x\":1768.0,\"y\":263.8754845034029},\"id\":\"Flow_cc88c4c\",\"startPoint\":{\"x\":1570.0,\"y\":40.0}},\"Flow_251a047\":{\"endPoint\":{\"x\":1756.0,\"y\":262.45007122521577},\"id\":\"Flow_251a047\",\"prop\":{\"x\":1499,\"y\":232,\"value\":\"${success==false}\"},\"startPoint\":{\"x\":1300.0,\"y\":65.0}},\"Flow_262c328\":{\"endPoint\":{\"x\":900.0,\"y\":415.0},\"id\":\"Flow_262c328\",\"startPoint\":{\"x\":670.0,\"y\":360.0}},\"Flow_3eaeb4e\":{\"endPoint\":{\"x\":875.0,\"y\":440.0},\"id\":\"Flow_3eaeb4e\",\"prop\":{\"x\":517,\"y\":440,\"value\":\"${saveOpLog==false}\"},\"startPoint\":{\"x\":380.0,\"y\":245.0}},\"Flow_1034b5d\":{\"endPoint\":{\"x\":1280.0,\"y\":305.0},\"id\":\"Flow_1034b5d\",\"startPoint\":{\"x\":925.0,\"y\":440.0}}},\"flowNodeCoordinate\":{\"Event_1d42u4p\":{\"id\":\"Event_1d42u4p\",\"prop\":{\"x\":240,\"y\":220,\"value\":\"开始\"},\"type\":\"bpmn:startEvent\",\"x\":240,\"y\":220},\"Event_08p8i6q\":{\"id\":\"Event_08p8i6q\",\"prop\":{\"x\":1760,\"y\":280,\"value\":\"结束\"},\"type\":\"bpmn:endEvent\",\"x\":1760,\"y\":280},\"Gateway_1fngqgj\":{\"id\":\"Gateway_1fngqgj\",\"prop\":{\"x\":380,\"y\":220,\"value\":\"包容网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":380,\"y\":220},\"Activity_6dbef63\":{\"id\":\"Activity_6dbef63\",\"prop\":{\"x\":620,\"y\":140,\"value\":\"更新视频流配置\"},\"type\":\"bpmn:serviceTask\",\"x\":620,\"y\":140},\"Activity_94e3eac\":{\"id\":\"Activity_94e3eac\",\"prop\":{\"x\":620,\"y\":360,\"value\":\"保存设备日志\"},\"type\":\"bpmn:serviceTask\",\"x\":620,\"y\":360},\"Gateway_3ea3847\":{\"id\":\"Gateway_3ea3847\",\"prop\":{\"x\":1280,\"y\":320,\"value\":\"并行网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":1280,\"y\":280},\"Gateway_b28e5e3\":{\"id\":\"Gateway_b28e5e3\",\"prop\":{\"x\":840,\"y\":180,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":840,\"y\":140},\"Activity_f626c7e\":{\"id\":\"Activity_f626c7e\",\"prop\":{\"x\":1100,\"y\":40,\"value\":\"获取资源锁5小时\"},\"type\":\"bpmn:serviceTask\",\"x\":1100,\"y\":40},\"Gateway_0d85c0d\":{\"id\":\"Gateway_0d85c0d\",\"prop\":{\"x\":1300,\"y\":80,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":1300,\"y\":40},\"Activity_ddc6247\":{\"id\":\"Activity_ddc6247\",\"prop\":{\"x\":1520,\"y\":40,\"value\":\"发送告警短信\"},\"type\":\"bpmn:serviceTask\",\"x\":1520,\"y\":40},\"Gateway_c15c75f\":{\"id\":\"Gateway_c15c75f\",\"prop\":{\"x\":900,\"y\":480,\"value\":\"包容网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":900,\"y\":440}},\"flows\":[{\"conditionExpression\":\"\",\"id\":\"Flow_b2a3f3b\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Event_1d42u4p\",\"target\":\"Gateway_1fngqgj\"},{\"conditionExpression\":\"\",\"id\":\"Flow_d7eab7c\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1fngqgj\",\"target\":\"Activity_6dbef63\"},{\"conditionExpression\":\"${saveOpLog==true}\",\"id\":\"Flow_3f2a7f5\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1fngqgj\",\"target\":\"Activity_94e3eac\"},{\"conditionExpression\":\"\",\"id\":\"Flow_db15d38\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_6dbef63\",\"target\":\"Gateway_b28e5e3\"},{\"conditionExpression\":\"${code!=0}\",\"id\":\"Flow_bf3905a\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_b28e5e3\",\"target\":\"Activity_f626c7e\"},{\"conditionExpression\":\"\",\"id\":\"Flow_6eba1cc\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_f626c7e\",\"target\":\"Gateway_0d85c0d\"},{\"conditionExpression\":\"${success==true}\",\"id\":\"Flow_1503f42\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_0d85c0d\",\"target\":\"Activity_ddc6247\"},{\"conditionExpression\":\"${code==0}\",\"id\":\"Flow_19fcd9d\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_b28e5e3\",\"target\":\"Gateway_3ea3847\"},{\"conditionExpression\":\"\",\"id\":\"Flow_7bbd27e\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_3ea3847\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"\",\"id\":\"Flow_cc88c4c\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_ddc6247\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"${success==false}\",\"id\":\"Flow_251a047\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_0d85c0d\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"\",\"id\":\"Flow_262c328\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_94e3eac\",\"target\":\"Gateway_c15c75f\"},{\"conditionExpression\":\"${saveOpLog==false}\",\"id\":\"Flow_3eaeb4e\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1fngqgj\",\"target\":\"Gateway_c15c75f\"},{\"conditionExpression\":\"\",\"id\":\"Flow_1034b5d\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_c15c75f\",\"target\":\"Gateway_3ea3847\"}]}','423e1bba-64ec-11ee-9fed-0a0cb8bb6437','0','instant',NULL,NULL,NULL,NULL,'2023-10-07 16:48:02','2023-10-07 10:17:08');

insert into `biz_flow_def_his` (`process_type`, `process_name`, `process_desc`, `process_cate`, `tenant_id`, `in_param`, `flow_config`, `deployee_id`, `is_lock`, `period`, `time_start`, `time_end`, `call_cycle`, `cycle_unit`, `update_at`, `create_at`) values('updateDeviceProcess','载荷摄像头编辑操作流程(不删除)','载荷摄像头编辑操作流程','custom','','[{\"paramName\":\"appId\",\"valDesc\":\"appName\"},{\"paramName\":\"logTime\",\"valDesc\":\"时间戳ms\"},{\"paramName\":\"userId\",\"valDesc\":\"用户id\"},{\"paramName\":\"companyId\",\"valDesc\":\"公司Id\"},{\"paramName\":\"category\",\"valDesc\":\"分类\"},{\"paramName\":\"subCategory\",\"valDesc\":\"子分类\"},{\"paramName\":\"operateName\",\"valDesc\":\"操作名称\"},{\"paramName\":\"operateIdentity\",\"valDesc\":\"操作关联标识\"},{\"paramName\":\"operateValue\",\"valDesc\":\"operateValue\"},{\"paramName\":\"operateResult\",\"valDesc\":\"结果\"},{\"paramName\":\"operateDescMap\",\"valDesc\":\"operateDescMap\"},{\"paramName\":\"operateTime\",\"valDesc\":\"操作时间\"},{\"paramName\":\"lang\",\"valDesc\":\"语音\"},{\"paramName\":\"deviceCode\",\"valDesc\":\"设备编号\"},{\"paramName\":\"engineCode\",\"valDesc\":\"uav\"},{\"paramName\":\"streamHub\",\"valDesc\":\"live\"},{\"paramName\":\"record\",\"valDesc\":\"是否录制\"},{\"paramName\":\"save\",\"valDesc\":\"是否保存\"},{\"paramName\":\"loadModelName\",\"valDesc\":\"摄像头类型\"},{\"paramName\":\"gdrTranscode\",\"valDesc\":\"是否gdr转码-1,不转码\"},{\"paramName\":\"uavModelName\",\"valDesc\":\"无人机类型\"},{\"paramName\":\"uavType\",\"valDesc\":\"uav即可\"},{\"paramName\":\"uavCode\",\"valDesc\":\"对应无人机编号\"},{\"paramName\":\"saveOpLog\",\"valDesc\":\"是否保存操作日志\"},{\"paramName\":\"updateStream\",\"valDesc\":\"是否请求流媒体服务\"}]','{\"elements\":[{\"id\":\"Event_1d42u4p\",\"name\":\"开始\",\"taskNodeConfig\":{},\"type\":\"start\"},{\"id\":\"Event_08p8i6q\",\"name\":\"结束\",\"taskNodeConfig\":{},\"type\":\"end\"},{\"gateWayType\":\"Inclusive\",\"id\":\"Gateway_1fngqgj\",\"name\":\"包容网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_6dbef63\",\"name\":\"更新视频流配置\",\"taskNodeConfig\":{\"taskType\":\"applyDeviceLive\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"deviceCode\",\"paramName\":\"deviceCode\",\"paramType\":\"variable\"},{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"engineCode\",\"paramName\":\"engineCode\",\"paramType\":\"variable\"},{\"fromParamName\":\"streamHub\",\"paramName\":\"streamHub\",\"paramType\":\"variable\"},{\"fromParamName\":\"userId\",\"paramName\":\"userId\",\"paramType\":\"variable\"},{\"fromParamName\":\"record\",\"paramName\":\"record\",\"paramType\":\"variable\"},{\"fromParamName\":\"save\",\"paramName\":\"save\",\"paramType\":\"variable\"},{\"fromParamName\":\"loadModelName\",\"paramName\":\"loadModelName\",\"paramType\":\"variable\"},{\"fromParamName\":\"gdrTranscode\",\"paramName\":\"gdrTranscode\",\"paramType\":\"variable\"},{\"fromParamName\":\"uavModelName\",\"paramName\":\"uavModelName\",\"paramType\":\"variable\"},{\"fromParamName\":\"uavType\",\"paramName\":\"uavType\",\"paramType\":\"variable\"},{\"fromParamName\":\"uavCode\",\"paramName\":\"uavCode\",\"paramType\":\"variable\"},{\"paramName\":\"SYS_IGNORE_FAIL\",\"paramType\":\"fixed\",\"val\":\"true\"},{\"paramName\":\"SYS_IGNORE_ERROR\",\"paramType\":\"fixed\",\"val\":\"true\"}]},\"type\":\"task\"},{\"id\":\"Activity_94e3eac\",\"name\":\"保存设备日志\",\"taskNodeConfig\":{\"taskType\":\"bizLogSave\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"appId\",\"paramName\":\"appId\",\"paramType\":\"variable\"},{\"fromParamName\":\"logTime\",\"paramName\":\"logTime\",\"paramType\":\"variable\"},{\"fromParamName\":\"userId\",\"paramName\":\"userId\",\"paramType\":\"variable\"},{\"fromParamName\":\"companyId\",\"paramName\":\"companyId\",\"paramType\":\"variable\"},{\"fromParamName\":\"category\",\"paramName\":\"category\",\"paramType\":\"variable\"},{\"fromParamName\":\"subCategory\",\"paramName\":\"subCategory\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateName\",\"paramName\":\"operateName\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateIdentity\",\"paramName\":\"operateIdentity\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateValue\",\"paramName\":\"operateValue\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateResult\",\"paramName\":\"operateResult\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateDescMap\",\"paramName\":\"operateDescMap\",\"paramType\":\"variable\"},{\"fromParamName\":\"operateTime\",\"paramName\":\"operateTime\",\"paramType\":\"variable\"},{\"fromParamName\":\"lang\",\"paramName\":\"lang\",\"paramType\":\"variable\"},{\"paramName\":\"SYS_IGNORE_FAIL\",\"paramType\":\"fixed\",\"val\":\"true\"},{\"paramName\":\"SYS_IGNORE_ERROR\",\"paramType\":\"fixed\",\"val\":\"true\"}]},\"type\":\"task\"},{\"gateWayType\":\"Parallel\",\"id\":\"Gateway_3ea3847\",\"name\":\"并行网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_b28e5e3\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_f626c7e\",\"name\":\"获取资源锁5小时\",\"taskNodeConfig\":{\"taskType\":\"lockRes\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"cloudLive\",\"paramName\":\"group\",\"paramType\":\"fixed\",\"val\":\"cloudLive2\"},{\"fromParamName\":\"resId\",\"paramName\":\"resId\",\"paramType\":\"fixed\",\"val\":\"deviceCode\"},{\"paramName\":\"waitTime\",\"paramType\":\"fixed\",\"val\":\"5\"},{\"fromParamName\":\"18000\",\"paramName\":\"lockTime\",\"paramType\":\"fixed\",\"val\":\"18000\"}]},\"type\":\"task\"},{\"gateWayType\":\"Exclusive\",\"id\":\"Gateway_0d85c0d\",\"name\":\"排他网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"},{\"id\":\"Activity_ddc6247\",\"name\":\"发送告警短信\",\"taskNodeConfig\":{\"taskType\":\"sendWarnSms\",\"taskTypeCate\":\"sys\",\"transParams\":[{\"fromParamName\":\"phone\",\"paramName\":\"phone\",\"paramType\":\"fixed\",\"val\":\"18628380221\"},{\"paramName\":\"tplCode\",\"paramType\":\"fixed\",\"val\":\"bizproc_warn_sms\"},{\"fromParamName\":\"warnInfo\",\"paramName\":\"warnInfo\",\"paramType\":\"fixed\",\"val\":\"视频流接口调用失败\"},{\"fromParamName\":\"envName\",\"paramName\":\"envName\",\"paramType\":\"fixed\",\"val\":\"生产环境\"}]},\"type\":\"task\"},{\"gateWayType\":\"Inclusive\",\"id\":\"Gateway_c15c75f\",\"name\":\"包容网关\",\"taskNodeConfig\":{},\"type\":\"gateway\"}],\"flowLineCoordinate\":{\"Flow_b2a3f3b\":{\"endPoint\":{\"x\":355.0,\"y\":220.0},\"id\":\"Flow_b2a3f3b\",\"startPoint\":{\"x\":258.0,\"y\":220.0}},\"Flow_d7eab7c\":{\"endPoint\":{\"x\":570.0,\"y\":140.0},\"id\":\"Flow_d7eab7c\",\"startPoint\":{\"x\":380.0,\"y\":195.0}},\"Flow_3f2a7f5\":{\"endPoint\":{\"x\":570.0,\"y\":370.0},\"id\":\"Flow_3f2a7f5\",\"prop\":{\"x\":488,\"y\":370,\"value\":\"${saveOpLog==true}\"},\"startPoint\":{\"x\":380.0,\"y\":245.0}},\"Flow_db15d38\":{\"endPoint\":{\"x\":815.0,\"y\":140.0},\"id\":\"Flow_db15d38\",\"startPoint\":{\"x\":670.0,\"y\":140.0}},\"Flow_bf3905a\":{\"endPoint\":{\"x\":1050.0,\"y\":43.0},\"id\":\"Flow_bf3905a\",\"prop\":{\"x\":944.5,\"y\":43,\"value\":\"${code!=0}\"},\"startPoint\":{\"x\":839.0,\"y\":116.0}},\"Flow_6eba1cc\":{\"endPoint\":{\"x\":1275.0,\"y\":40.0},\"id\":\"Flow_6eba1cc\",\"startPoint\":{\"x\":1150.0,\"y\":40.0}},\"Flow_1503f42\":{\"endPoint\":{\"x\":1470.0,\"y\":40.0},\"id\":\"Flow_1503f42\",\"prop\":{\"x\":1397.5,\"y\":40,\"value\":\"${success==true}\"},\"startPoint\":{\"x\":1325.0,\"y\":40.0}},\"Flow_19fcd9d\":{\"endPoint\":{\"x\":1255.0,\"y\":280.0},\"id\":\"Flow_19fcd9d\",\"prop\":{\"x\":963,\"y\":280,\"value\":\"${code==0}\"},\"startPoint\":{\"x\":840.0,\"y\":165.0}},\"Flow_7bbd27e\":{\"endPoint\":{\"x\":1742.0277992443885,\"y\":279.0},\"id\":\"Flow_7bbd27e\",\"startPoint\":{\"x\":1305.0,\"y\":280.0}},\"Flow_cc88c4c\":{\"endPoint\":{\"x\":1768.0,\"y\":263.8754845034029},\"id\":\"Flow_cc88c4c\",\"startPoint\":{\"x\":1570.0,\"y\":40.0}},\"Flow_251a047\":{\"endPoint\":{\"x\":1756.0,\"y\":262.45007122521577},\"id\":\"Flow_251a047\",\"prop\":{\"x\":1499,\"y\":232,\"value\":\"${success==false}\"},\"startPoint\":{\"x\":1300.0,\"y\":65.0}},\"Flow_262c328\":{\"endPoint\":{\"x\":900.0,\"y\":415.0},\"id\":\"Flow_262c328\",\"startPoint\":{\"x\":670.0,\"y\":360.0}},\"Flow_3eaeb4e\":{\"endPoint\":{\"x\":875.0,\"y\":440.0},\"id\":\"Flow_3eaeb4e\",\"prop\":{\"x\":517,\"y\":440,\"value\":\"${saveOpLog==false}\"},\"startPoint\":{\"x\":380.0,\"y\":245.0}},\"Flow_1034b5d\":{\"endPoint\":{\"x\":1280.0,\"y\":305.0},\"id\":\"Flow_1034b5d\",\"startPoint\":{\"x\":925.0,\"y\":440.0}}},\"flowNodeCoordinate\":{\"Event_1d42u4p\":{\"id\":\"Event_1d42u4p\",\"prop\":{\"x\":240,\"y\":220,\"value\":\"开始\"},\"type\":\"bpmn:startEvent\",\"x\":240,\"y\":220},\"Event_08p8i6q\":{\"id\":\"Event_08p8i6q\",\"prop\":{\"x\":1760,\"y\":280,\"value\":\"结束\"},\"type\":\"bpmn:endEvent\",\"x\":1760,\"y\":280},\"Gateway_1fngqgj\":{\"id\":\"Gateway_1fngqgj\",\"prop\":{\"x\":380,\"y\":220,\"value\":\"包容网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":380,\"y\":220},\"Activity_6dbef63\":{\"id\":\"Activity_6dbef63\",\"prop\":{\"x\":620,\"y\":140,\"value\":\"更新视频流配置\"},\"type\":\"bpmn:serviceTask\",\"x\":620,\"y\":140},\"Activity_94e3eac\":{\"id\":\"Activity_94e3eac\",\"prop\":{\"x\":620,\"y\":360,\"value\":\"保存设备日志\"},\"type\":\"bpmn:serviceTask\",\"x\":620,\"y\":360},\"Gateway_3ea3847\":{\"id\":\"Gateway_3ea3847\",\"prop\":{\"x\":1280,\"y\":320,\"value\":\"并行网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":1280,\"y\":280},\"Gateway_b28e5e3\":{\"id\":\"Gateway_b28e5e3\",\"prop\":{\"x\":840,\"y\":180,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":840,\"y\":140},\"Activity_f626c7e\":{\"id\":\"Activity_f626c7e\",\"prop\":{\"x\":1100,\"y\":40,\"value\":\"获取资源锁5小时\"},\"type\":\"bpmn:serviceTask\",\"x\":1100,\"y\":40},\"Gateway_0d85c0d\":{\"id\":\"Gateway_0d85c0d\",\"prop\":{\"x\":1300,\"y\":80,\"value\":\"排他网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":1300,\"y\":40},\"Activity_ddc6247\":{\"id\":\"Activity_ddc6247\",\"prop\":{\"x\":1520,\"y\":40,\"value\":\"发送告警短信\"},\"type\":\"bpmn:serviceTask\",\"x\":1520,\"y\":40},\"Gateway_c15c75f\":{\"id\":\"Gateway_c15c75f\",\"prop\":{\"x\":900,\"y\":480,\"value\":\"包容网关\"},\"type\":\"bpmn:exclusiveGateway\",\"x\":900,\"y\":440}},\"flows\":[{\"conditionExpression\":\"\",\"id\":\"Flow_b2a3f3b\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Event_1d42u4p\",\"target\":\"Gateway_1fngqgj\"},{\"conditionExpression\":\"\",\"id\":\"Flow_d7eab7c\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1fngqgj\",\"target\":\"Activity_6dbef63\"},{\"conditionExpression\":\"${saveOpLog==true}\",\"id\":\"Flow_3f2a7f5\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1fngqgj\",\"target\":\"Activity_94e3eac\"},{\"conditionExpression\":\"\",\"id\":\"Flow_db15d38\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_6dbef63\",\"target\":\"Gateway_b28e5e3\"},{\"conditionExpression\":\"${code!=0}\",\"id\":\"Flow_bf3905a\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_b28e5e3\",\"target\":\"Activity_f626c7e\"},{\"conditionExpression\":\"\",\"id\":\"Flow_6eba1cc\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_f626c7e\",\"target\":\"Gateway_0d85c0d\"},{\"conditionExpression\":\"${success==true}\",\"id\":\"Flow_1503f42\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_0d85c0d\",\"target\":\"Activity_ddc6247\"},{\"conditionExpression\":\"${code==0}\",\"id\":\"Flow_19fcd9d\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_b28e5e3\",\"target\":\"Gateway_3ea3847\"},{\"conditionExpression\":\"\",\"id\":\"Flow_7bbd27e\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_3ea3847\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"\",\"id\":\"Flow_cc88c4c\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_ddc6247\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"${success==false}\",\"id\":\"Flow_251a047\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_0d85c0d\",\"target\":\"Event_08p8i6q\"},{\"conditionExpression\":\"\",\"id\":\"Flow_262c328\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Activity_94e3eac\",\"target\":\"Gateway_c15c75f\"},{\"conditionExpression\":\"${saveOpLog==false}\",\"id\":\"Flow_3eaeb4e\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_1fngqgj\",\"target\":\"Gateway_c15c75f\"},{\"conditionExpression\":\"\",\"id\":\"Flow_1034b5d\",\"name\":\"bpmn:sequenceFlow\",\"source\":\"Gateway_c15c75f\",\"target\":\"Gateway_3ea3847\"}]}','423e1bba-64ec-11ee-9fed-0a0cb8bb6437','1','instant',NULL,NULL,NULL,NULL,'2023-10-07 16:33:58','2023-10-07 10:17:08');

insert into `biz_flow_task` (`process_type`, `task_type`) values('updateDeviceProcess','applyDeviceLive');
insert into `biz_flow_task` (`process_type`, `task_type`) values('updateDeviceProcess','bizLogSave');
insert into `biz_flow_task` (`process_type`, `task_type`) values('updateDeviceProcess','lockRes');
insert into `biz_flow_task` (`process_type`, `task_type`) values('updateDeviceProcess','sendWarnSms');

insert into `act_re_deployment` (`ID_`, `NAME_`, `CATEGORY_`, `KEY_`, `TENANT_ID_`, `DEPLOY_TIME_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `PARENT_DEPLOYMENT_ID_`, `ENGINE_VERSION_`) values('423e1bba-64ec-11ee-9fed-0a0cb8bb6437','载荷摄像头编辑操作流程(不删除)','bizflow','updateDeviceProcess_bz_','f_','2023-10-07 16:33:58.149',NULL,NULL,NULL,NULL);

insert into `act_re_procdef` (`ID_`, `REV_`, `CATEGORY_`, `NAME_`, `KEY_`, `VERSION_`, `DEPLOYMENT_ID_`, `RESOURCE_NAME_`, `DGRM_RESOURCE_NAME_`, `DESCRIPTION_`, `HAS_START_FORM_KEY_`, `HAS_GRAPHICAL_NOTATION_`, `SUSPENSION_STATE_`, `TENANT_ID_`, `ENGINE_VERSION_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `DERIVED_VERSION_`) values('updateDeviceProcess_bz_:28:424101ec-64ec-11ee-9fed-0a0cb8bb6437','1','http://www.flowable.org/test','updateDeviceProcess','updateDeviceProcess_bz_','28','423e1bba-64ec-11ee-9fed-0a0cb8bb6437','updateDeviceProcess_bz_.bpmn',NULL,NULL,'0','0','1','f_',NULL,NULL,NULL,'0');

insert into `act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) values('423e1bbb-64ec-11ee-9fed-0a0cb8bb6437','1','updateDeviceProcess_bz_.bpmn','423e1bba-64ec-11ee-9fed-0a0cb8bb6437','<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" typeLanguage=\"http://www.w3.org/2001/XMLSchema\" expressionLanguage=\"http://www.w3.org/1999/XPath\" targetNamespace=\"http://www.flowable.org/test\">\n  <process id=\"updateDeviceProcess_bz_\" name=\"updateDeviceProcess\" isExecutable=\"true\">\n    <startEvent id=\"Event_1d42u4p\" name=\"开始\"></startEvent>\n    <endEvent id=\"Event_08p8i6q\" name=\"结束\">\n      <extensionElements>\n        <flowable:executionListener event=\"end\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessEndHandler\"></flowable:executionListener>\n      </extensionElements>\n    </endEvent>\n    <inclusiveGateway id=\"Gateway_1fngqgj\" name=\"包容网关\"></inclusiveGateway>\n    <userTask id=\"Activity_6dbef63\" name=\"更新视频流配置\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <userTask id=\"Activity_94e3eac\" name=\"保存设备日志\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <parallelGateway id=\"Gateway_3ea3847\" name=\"并行网关\"></parallelGateway>\n    <exclusiveGateway id=\"Gateway_b28e5e3\" name=\"排他网关\"></exclusiveGateway>\n    <userTask id=\"Activity_f626c7e\" name=\"获取资源锁5小时\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <exclusiveGateway id=\"Gateway_0d85c0d\" name=\"排他网关\"></exclusiveGateway>\n    <userTask id=\"Activity_ddc6247\" name=\"发送告警短信\" flowable:category=\"bizflow\">\n      <extensionElements>\n        <flowable:taskListener event=\"all\" class=\"com.cmii.chinamobile.process.service.module.process.handler.impl.BizProcessHandler\"></flowable:taskListener>\n      </extensionElements>\n    </userTask>\n    <inclusiveGateway id=\"Gateway_c15c75f\" name=\"包容网关\"></inclusiveGateway>\n    <sequenceFlow id=\"Flow_b2a3f3b\" name=\"bpmn:sequenceFlow\" sourceRef=\"Event_1d42u4p\" targetRef=\"Gateway_1fngqgj\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_d7eab7c\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_1fngqgj\" targetRef=\"Activity_6dbef63\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_3f2a7f5\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_1fngqgj\" targetRef=\"Activity_94e3eac\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${saveOpLog==true}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_db15d38\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_6dbef63\" targetRef=\"Gateway_b28e5e3\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_bf3905a\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_b28e5e3\" targetRef=\"Activity_f626c7e\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${code!=0}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_6eba1cc\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_f626c7e\" targetRef=\"Gateway_0d85c0d\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_1503f42\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_0d85c0d\" targetRef=\"Activity_ddc6247\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${success==true}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_19fcd9d\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_b28e5e3\" targetRef=\"Gateway_3ea3847\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${code==0}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_7bbd27e\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_3ea3847\" targetRef=\"Event_08p8i6q\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_cc88c4c\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_ddc6247\" targetRef=\"Event_08p8i6q\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_251a047\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_0d85c0d\" targetRef=\"Event_08p8i6q\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${success==false}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_262c328\" name=\"bpmn:sequenceFlow\" sourceRef=\"Activity_94e3eac\" targetRef=\"Gateway_c15c75f\"></sequenceFlow>\n    <sequenceFlow id=\"Flow_3eaeb4e\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_1fngqgj\" targetRef=\"Gateway_c15c75f\">\n      <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${saveOpLog==false}]]></conditionExpression>\n    </sequenceFlow>\n    <sequenceFlow id=\"Flow_1034b5d\" name=\"bpmn:sequenceFlow\" sourceRef=\"Gateway_c15c75f\" targetRef=\"Gateway_3ea3847\"></sequenceFlow>\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_updateDeviceProcess_bz_\">\n    <bpmndi:BPMNPlane bpmnElement=\"updateDeviceProcess_bz_\" id=\"BPMNPlane_updateDeviceProcess_bz_\"></bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>','0');


