public Map<String,Object> GetFlowRefInfo(Map<String,Object> filter) throws SQLException {
Map<String,Object> result = new HashMap<String,Object>();
List<Map<String,Object>> tmpres = new ArrayList<Map<String,Object>>();
ProcessEngine engine = getProcessEngine(filter.get("userId"));
try{
String taskId = (String)filter.get("taskId");
String processDefinitionKey = (String)filter.get("processDefinitionKey");
// taskId.replaceAll(regex, replacement)
List<TaskCommandInst> list = null;
if(StringUtil.isNotEmpty(taskId)){
list = engine.getTaskService().GetTaskCommandByTaskId(taskId, false);
}else{
list = engine.getTaskService().getSubTaskTaskCommandByKey(processDefinitionKey);
}
for(TaskCommandInst tmp:list){
tmpres.add(tmp.getPersistentState());
}
result.put("commandList", tmpres);