create table WB_ROUTE
(
    ROUTE_ID      VARCHAR2(13),
    FLOW_ID       VARCHAR2(13),
    MODIFY_DATE   TIMESTAMP(6),
    USER_ID       VARCHAR2(13),
    ACTIVE_NODE   VARCHAR2(100),
    TITLE         CLOB,
    STATUS        VARCHAR2(100),
    ROUTE_CONTENT CLOB
)
/

INSERT INTO AG_DEV_ORACLE.WB_ROUTE (ROUTE_ID, FLOW_ID, MODIFY_DATE, USER_ID, ACTIVE_NODE, TITLE, STATUS, ROUTE_CONTENT) VALUES ('0045WE4ZK80VN', '003ZOUKX8NB2T', TIMESTAMP '2018-04-01 08:34:22.000000', 'admin', '部门经理审批', '111', '审批中', '{"sys.dispname":"管理员","sys.date":"2018-04-01 08:34:21.966","sys.theme":"classic","sys.id":"0045WE4ZK80VM","ROUTE_ID":"0045WE4ZK80VN","memo":"222","xwl":"examples/utilities/workflow/fee-apply/create-apply","sys.username":"admin","sys.roles":"[\"default\",\"admin\"]","sys.tenancyId":"XL","mapMenuRes":{"admin":[]},"STATUS":"审批中","debugSuffix":"-debug","MODIFY_DATE":"2018-04-01 08:34:21.993","applyGrid":"[{\"name\":\"333\",\"fee\":1,\"remark\":\"\",\"#name\":\"\",\"#fee\":\"\",\"#remark\":\"\"}]","sys.editTheme":"blackboard","CURRENT_NODES":["部门经理审批"],"FLOW_XTPL":"{\"conn\":[{\"dst\":\"上级经理审批\",\"src\":\"部门经理审批\"},{\"dst\":\"财务审核处理\",\"src\":\"部门经理审批\"},{\"dst\":\"财务审核处理\",\"src\":\"上级经理审批\"},{\"dst\":\"完成\",\"src\":\"财务审核处理\"}],\"list\":[{\"isObj\":true,\"label\":\"部门经理审批\",\"script\":\"var amount = 0,\\n  recs = Wb.decode(route.get(''applyGrid''));\\nWb.each(recs, function(rec) {\\n  amount += rec.fee;\\n});\\n//如果报销合计金额大于10000需要由上级经理审批，否则直接提交财务审核处理\\nif (amount > 10000) route.to(''上级经理审批'');\\nelse route.to(''财务审核处理'');\\nreturn false; //默认不自动流转（已经由route.to方法流转）\"},{\"isObj\":true,\"label\":\"上级经理审批\",\"script\":\"\"},{\"isObj\":true,\"label\":\"财务审核处理\",\"script\":\"route.set(''STATUS'', ''完成'');\\njava.lang.System.out.println(route.get(''sys.username'') + ''报销到账'');\\n//实际业务中可执行银行转账和邮件通知操作\"},{\"isObj\":true,\"label\":\"完成\",\"script\":\"\"},{\"isObj\":false,\"box\":{\"w\":48,\"x\":191,\"y\":43.5}},{\"isObj\":false,\"box\":{\"w\":0,\"x\":115,\"y\":56}},{\"isObj\":false,\"box\":{\"w\":48,\"x\":191,\"y\":43.5}},{\"isObj\":false,\"box\":{\"w\":0,\"x\":115,\"y\":104}}]}","sys.lang":"auto","sys.userid":"admin","editor":"333","subsList":"<li><img src=\"wb/images/photos/user.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043T454BQC9N'',''admin'')\">委托管理<\/a><\/li><li><img src=\"wb/images/photos/order.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043FJVKE626F'',''admin'')\">堆场管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0045ASHZYP5X2'',''admin'')\">仓储管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043FJVKE626N'',''admin'')\">车辆管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043Z9L7C0634'',''admin'')\">作业管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043Z9L7C063C'',''admin'')\">计费管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0040P0VXXYWNB'',''admin'')\">系统管理<\/a><\/li>","sys.useLang":"zh_CN","sys.menuid":"0043T454BQC9N","simpleListener":"com.wb.common.SimpleListener@5d8b268","sys.logined":true,"FLOW_ID":"003ZOUKX8NB2T","ACTIVE_NODE":"部门经理审批","CREATE_DATE":"2018-04-01 08:34:21.993","sys.ip":"172.16.9.243","sys.user":"admin","TITLE":"111","sys.roleList":"default,admin"}');
INSERT INTO AG_DEV_ORACLE.WB_ROUTE (ROUTE_ID, FLOW_ID, MODIFY_DATE, USER_ID, ACTIVE_NODE, TITLE, STATUS, ROUTE_CONTENT) VALUES ('0045WE4ZK80XE', '003ZOUKX8NB2T', TIMESTAMP '2018-04-01 08:35:03.000000', 'admin', '部门经理审批', '222', '审批中', '{"sys.dispname":"管理员","sys.date":"2018-04-01 08:35:03.077","sys.theme":"classic","sys.id":"0045WE4ZK80XD","ROUTE_ID":"0045WE4ZK80XE","memo":"333","xwl":"examples/utilities/workflow/fee-apply/create-apply","sys.username":"admin","sys.roles":"[\"default\",\"admin\"]","sys.tenancyId":"XL","mapMenuRes":{"admin":[]},"STATUS":"审批中","debugSuffix":"-debug","MODIFY_DATE":"2018-04-01 08:35:03.08","applyGrid":"[{\"name\":\"444\",\"fee\":5,\"remark\":\"\",\"#name\":\"\",\"#fee\":\"\",\"#remark\":\"\"}]","sys.editTheme":"blackboard","CURRENT_NODES":["部门经理审批"],"FLOW_XTPL":"{\"conn\":[{\"dst\":\"上级经理审批\",\"src\":\"部门经理审批\"},{\"dst\":\"财务审核处理\",\"src\":\"部门经理审批\"},{\"dst\":\"财务审核处理\",\"src\":\"上级经理审批\"},{\"dst\":\"完成\",\"src\":\"财务审核处理\"}],\"list\":[{\"isObj\":true,\"label\":\"部门经理审批\",\"script\":\"var amount = 0,\\n  recs = Wb.decode(route.get(''applyGrid''));\\nWb.each(recs, function(rec) {\\n  amount += rec.fee;\\n});\\n//如果报销合计金额大于10000需要由上级经理审批，否则直接提交财务审核处理\\nif (amount > 10000) route.to(''上级经理审批'');\\nelse route.to(''财务审核处理'');\\nreturn false; //默认不自动流转（已经由route.to方法流转）\"},{\"isObj\":true,\"label\":\"上级经理审批\",\"script\":\"\"},{\"isObj\":true,\"label\":\"财务审核处理\",\"script\":\"route.set(''STATUS'', ''完成'');\\njava.lang.System.out.println(route.get(''sys.username'') + ''报销到账'');\\n//实际业务中可执行银行转账和邮件通知操作\"},{\"isObj\":true,\"label\":\"完成\",\"script\":\"\"},{\"isObj\":false,\"box\":{\"w\":48,\"x\":191,\"y\":43.5}},{\"isObj\":false,\"box\":{\"w\":0,\"x\":115,\"y\":56}},{\"isObj\":false,\"box\":{\"w\":48,\"x\":191,\"y\":43.5}},{\"isObj\":false,\"box\":{\"w\":0,\"x\":115,\"y\":104}}]}","sys.lang":"auto","sys.userid":"admin","editor":"444","subsList":"<li><img src=\"wb/images/photos/user.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043T454BQC9N'',''admin'')\">委托管理<\/a><\/li><li><img src=\"wb/images/photos/order.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043FJVKE626F'',''admin'')\">堆场管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0045ASHZYP5X2'',''admin'')\">仓储管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043FJVKE626N'',''admin'')\">车辆管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043Z9L7C0634'',''admin'')\">作业管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043Z9L7C063C'',''admin'')\">计费管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0040P0VXXYWNB'',''admin'')\">系统管理<\/a><\/li>","sys.useLang":"zh_CN","sys.menuid":"0043T454BQC9N","simpleListener":"com.wb.common.SimpleListener@5d8b268","sys.logined":true,"FLOW_ID":"003ZOUKX8NB2T","ACTIVE_NODE":"部门经理审批","CREATE_DATE":"2018-04-01 08:35:03.08","sys.ip":"172.16.9.243","sys.user":"admin","TITLE":"222","sys.roleList":"default,admin"}');
INSERT INTO AG_DEV_ORACLE.WB_ROUTE (ROUTE_ID, FLOW_ID, MODIFY_DATE, USER_ID, ACTIVE_NODE, TITLE, STATUS, ROUTE_CONTENT) VALUES ('0045WYTQ3GYIP', '003ZOUKX8NB2T', TIMESTAMP '2018-04-01 10:30:42.000000', 'admin', '部门经理审批', '11', '审批中', '{"sys.dispname":"管理员","sys.date":"2018-04-01 10:30:41.802","sys.theme":"classic","sys.id":"0045WYTQ3GYIN","ROUTE_ID":"0045WYTQ3GYIP","memo":"22","xwl":"examples/utilities/workflow/fee-apply/create-apply","sys.username":"admin","sys.roles":"[\"default\",\"admin\"]","sys.tenancyId":"XL","mapMenuRes":{"admin":[]},"STATUS":"审批中","debugSuffix":"-debug","MODIFY_DATE":"2018-04-01 10:30:41.958","applyGrid":"[{\"name\":\"33\",\"fee\":1,\"remark\":\"\",\"#name\":\"\",\"#fee\":\"\",\"#remark\":\"\"}]","sys.editTheme":"blackboard","CURRENT_NODES":["部门经理审批"],"FLOW_XTPL":"{\"conn\":[{\"dst\":\"上级经理审批\",\"src\":\"部门经理审批\"},{\"dst\":\"财务审核处理\",\"src\":\"部门经理审批\"},{\"dst\":\"财务审核处理\",\"src\":\"上级经理审批\"},{\"dst\":\"完成\",\"src\":\"财务审核处理\"}],\"list\":[{\"isObj\":true,\"label\":\"部门经理审批\",\"script\":\"var amount = 0,\\n  recs = Wb.decode(route.get(''applyGrid''));\\nWb.each(recs, function(rec) {\\n  amount += rec.fee;\\n});\\n//如果报销合计金额大于10000需要由上级经理审批，否则直接提交财务审核处理\\nif (amount > 10000) route.to(''上级经理审批'');\\nelse route.to(''财务审核处理'');\\nreturn false; //默认不自动流转（已经由route.to方法流转）\"},{\"isObj\":true,\"label\":\"上级经理审批\",\"script\":\"\"},{\"isObj\":true,\"label\":\"财务审核处理\",\"script\":\"route.set(''STATUS'', ''完成'');\\njava.lang.System.out.println(route.get(''sys.username'') + ''报销到账'');\\n//实际业务中可执行银行转账和邮件通知操作\"},{\"isObj\":true,\"label\":\"完成\",\"script\":\"\"},{\"isObj\":false,\"box\":{\"w\":48,\"x\":191,\"y\":43.5}},{\"isObj\":false,\"box\":{\"w\":0,\"x\":115,\"y\":56}},{\"isObj\":false,\"box\":{\"w\":48,\"x\":191,\"y\":43.5}},{\"isObj\":false,\"box\":{\"w\":0,\"x\":115,\"y\":104}}]}","sys.lang":"auto","sys.userid":"admin","editor":"33","subsList":"<li><img src=\"wb/images/photos/user.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043T454BQC9N'',''admin'')\">委托管理<\/a><\/li><li><img src=\"wb/images/photos/order.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043FJVKE626F'',''admin'')\">堆场管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0045ASHZYP5X2'',''admin'')\">仓储管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043FJVKE626N'',''admin'')\">车辆管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043Z9L7C0634'',''admin'')\">作业管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043Z9L7C063C'',''admin'')\">计费管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0040P0VXXYWNB'',''admin'')\">系统管理<\/a><\/li>","sys.useLang":"zh_CN","sys.menuid":"0043T454BQC9N","simpleListener":"com.wb.common.SimpleListener@67495324","sys.logined":true,"FLOW_ID":"003ZOUKX8NB2T","ACTIVE_NODE":"部门经理审批","CREATE_DATE":"2018-04-01 10:30:41.958","sys.ip":"127.0.0.1","sys.user":"admin","TITLE":"11","sys.roleList":"default,admin"}');
INSERT INTO AG_DEV_ORACLE.WB_ROUTE (ROUTE_ID, FLOW_ID, MODIFY_DATE, USER_ID, ACTIVE_NODE, TITLE, STATUS, ROUTE_CONTENT) VALUES ('0045WYTQ3GYJX', '0045WE4ZK7STI', TIMESTAMP '2018-04-01 10:53:41.000000', 'admin', '开始', '3', '审批中', '{"sys.dispname":"管理员","sys.date":"2018-04-01 10:53:36.241","sys.theme":"classic","sys.id":"0045WYTQ3GYJW","ROUTE_ID":"0045WYTQ3GYJX","memo":"3","xwl":"examples/utilities/workflow/fee-apply/create-apply","sys.username":"admin","sys.roles":"[\"default\",\"admin\"]","sys.tenancyId":"XL","mapMenuRes":{"admin":[]},"STATUS":"审批中","debugSuffix":"-debug","MODIFY_DATE":"2018-04-01 10:53:41.026","applyGrid":"[{\"name\":\"1\",\"fee\":1,\"remark\":\"\",\"#name\":\"\",\"#fee\":\"\",\"#remark\":\"\"}]","sys.editTheme":"blackboard","CURRENT_NODES":["开始"],"FLOW_XTPL":"{\"conn\":[{\"dst\":\"兰总审批\",\"src\":\"开始\"},{\"dst\":\"完成\",\"src\":\"兰总审批\"}],\"list\":[{\"isObj\":true,\"label\":\"兰总审批\",\"script\":\"\"},{\"isObj\":true,\"label\":\"完成\",\"script\":\"\"},{\"isObj\":true,\"label\":\"开始\",\"script\":\"\"},{\"isObj\":false,\"box\":{\"w\":0,\"x\":203,\"y\":64}},{\"isObj\":false,\"box\":{\"w\":0,\"x\":203,\"y\":128}}]}","sys.lang":"auto","sys.userid":"admin","editor":"1","subsList":"<li><img src=\"wb/images/photos/user.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043T454BQC9N'',''admin'')\">委托管理<\/a><\/li><li><img src=\"wb/images/photos/order.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043FJVKE626F'',''admin'')\">堆场管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0045ASHZYP5X2'',''admin'')\">仓储管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043FJVKE626N'',''admin'')\">车辆管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043Z9L7C0634'',''admin'')\">作业管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0043Z9L7C063C'',''admin'')\">计费管理<\/a><\/li><li><img src=\"wb/images/photos/settle.png\" style=\"margin-bottom:3px\"/><a onclick=\"subsclick(''0040P0VXXYWNB'',''admin'')\">系统管理<\/a><\/li>","sys.useLang":"zh_CN","sys.menuid":"0043T454BQC9N","simpleListener":"com.wb.common.SimpleListener@67495324","sys.logined":true,"FLOW_ID":"0045WE4ZK7STI","ACTIVE_NODE":"开始","CREATE_DATE":"2018-04-01 10:53:41.026","sys.ip":"127.0.0.1","sys.user":"admin","TITLE":"3","sys.roleList":"default,admin"}');
