-

TLv8 流程图

获取目录树

String r = FlowFolderTree.getFolderJsonStr();

r目录信息[JSON]

tempStr.append("'name':'");
			tempStr.append(m.get("SNAME"));
			tempStr.append("','id':'");
			tempStr.append(m.get("SID"));
			tempStr.append("','pId':'");
			tempStr.append(m.get("SPARENT"));
			tempStr.append("','SCODE':'");
			tempStr.append(m.get("SCODE"));
			tempStr.append("','SIDPATH':'");
			tempStr.append(m.get("SIDPATH"));
			tempStr.append("','SCODEPATH':'");
			tempStr.append(m.get("SCODEPATH"));
			tempStr.append("','SNAMEPATH':'");
			tempStr.append(m.get("SNAMEPATH"));
			tempStr.append("','SPROCESSID':'");
			tempStr.append(m.get("SPROCESSID"));
			tempStr.append("','SPROCESSNAME':'");
			tempStr.append(m.get("SPROCESSNAME"));
			tempStr.append("', 'children':[]}");
      

@RequestMapping("/getflwFolderAction")


编辑目录

String sql = FlowFolderEditHelper.createQuerySql(FlowFolderTreeBean);
			List li = DBUtils.execQueryforList("system", sql);
			if (li.size() > 0) {
				sql = FlowFolderEditHelper.createEditSql(FlowFolderTreeBean);
				r = DBUtils.execUpdateQuery("system", sql);
			} else {
				sql = FlowFolderEditHelper.createInsertSql(FlowFolderTreeBean);
				r = DBUtils.execInsertQuery("system", sql);
			}

FlowFolderTreeBean信息

private String id;// SID
	private String name;// SNAME
	private String pid;// SPARENT
	private String scode;// SCODE
	private String sidpath;// SIDPATH
	private String scodepath;// SCODEPATH
	private String snamepath;// SNAMEPATH
	private String sprocessid;// SPROCESSID
	private String sprocessname;// SPROCESSNAME
	private String sdrawlg;//SDRAWLG

@RequestMapping("/editflwFolderAction")


添加目录

String sql = FlowFolderEditHelper.createInsertSql(FlowFolderTreeBean);
			r = DBUtils.execInsertQuery("system", sql);

@RequestMapping("/insertflwFolderAction")


删除目录

String sql = FlowFolderEditHelper.createDeleteSql(this);
			r = DBUtils.execdeleteQuery("system", sql);
			FlowFile.deleteFlowDraw(getSprocessid());

@RequestMapping("/deleteflwFolderAction")


流程图的相关操作

获取流程图

Map m = FlowFile.getFlowDraw(processid);
sdrawlg = (String) m.get("SDRAWLG");//流程图【标记】
sprocessacty = (String) m.get("SPROCESSACTY");//流程图【json】

@RequestMapping("/getFlowDrawAction")

流程图JSON内容

count:节点数量

nodes:流程环节【数组】

lines:环节间连线【数组】

保存流程图

FlowFile.saveFlowDraw(getSprocessid(), getSprocessname(), getSdrawlg(), getSprocessacty());

@RequestMapping("/saveFlowDrawLGAction")


流程流转记录

波特图

加载波特图

FlowBotBean bean = new FlowBotBean(flowID);
bean.toJsonStr();

@RequestMapping("/flowloadbotAction")

加载波特图X当前环节带关联上下环节信息

FlowBotXBean bean = new FlowBotXBean(flowID);
bean.toJsonStr();

@RequestMapping("/flowloadbotXAction")


流程图

加载流程图未启动流程的根据功能路径获取

processID = TaskData.getProcessID(flowID);
			if (processID == null || "".equals(processID)) {
				processID = FlowControler.seachProcessID(currentUrl, request);
			}
			Map m = FlowFile.getFlowDraw(processID);

@RequestMapping("/flowloadIocusAction")

加载流程图X获取指定processid的流程图

Map m = FlowFile.getFlowDraw(processID);

@RequestMapping("/flowloadIocusXAction")

检测流程是否已经结束

boolean isfinish = TaskData.checkisfinished(flowID);

@RequestMapping("/flowcheckfinishAction")



Powered By layui