{"hidden":false,"children":[{"configs":{"serverScript":"var name, remark, items = Wb.decode(StringUtil.getString(request.getInputStream()));\nDbUtil.getConnection(request).setAutoCommit(false); //开始事务\nWb.each(items, function(k, v) {\n  com.wb.common.ScriptBuffer.remove(k);\n  name = v.name;\n  remark = v.remark;\n  delete v.name;\n  delete v.remark;\n  app.set({\n    FLOW_ID: k,\n    FLOW_NAME: name,\n    REMARK: remark,\n    FLOW_CONTENT: Wb.encode(v)\n  });\n  app.run('delete from WB_FLOW where FLOW_ID={?FLOW_ID?}');\n  app.run('insert into WB_FLOW values ({?FLOW_ID?},{?FLOW_NAME?},{?sys.user?},{?sys.date?},{?REMARK?},{?clob.FLOW_CONTENT?})');\n});","itemId":"module"},"expanded":true,"children":[],"type":"module"}],"roles":{},"title":"保存","iconCls":"","inframe":false,"pageLink":""}