|
@@ -362,6 +362,18 @@ public class FlowProcessServiceImpl implements FlowProcessService {
|
|
|
return flowResult;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public JSONObject getStartData(Long flowId) {
|
|
|
+ if (flowId == null) {
|
|
|
+ throw new ServiceException("流程实例id不能为空");
|
|
|
+ }
|
|
|
+ FlowExample flowExample = flowExampleService.getById(flowId);
|
|
|
+ if (flowExample == null) {
|
|
|
+ throw new ServiceException("没有找到流程实例");
|
|
|
+ }
|
|
|
+ return JSONObject.parseObject(flowExample.getStartData());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 执行节点方法
|
|
|
*
|
|
@@ -566,6 +578,26 @@ public class FlowProcessServiceImpl implements FlowProcessService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // public static void main(String[] args) {
|
|
|
+ // HashMap<String, Object> map = new HashMap<>();
|
|
|
+ //
|
|
|
+ // HashMap<Object, Object> dd = new HashMap<>();
|
|
|
+ // dd.put("A", "a1");
|
|
|
+ // dd.put("B", "b1");
|
|
|
+ // dd.put("C", "c1");
|
|
|
+ //
|
|
|
+ //
|
|
|
+ // map.put("aa", "aa");
|
|
|
+ // map.put("bb", "bb");
|
|
|
+ // map.put("cc", Arrays.asList("A", "B", "C", "D"));
|
|
|
+ // map.put("dd", dd);
|
|
|
+ //
|
|
|
+ // System.out.println(expressionResult(map,
|
|
|
+ // "aa == 'aa' && bb == 'bb' && cc[0] == 'A' && dd.A == 'a1' "
|
|
|
+ // ));
|
|
|
+ //
|
|
|
+ // }
|
|
|
+
|
|
|
/**
|
|
|
* 模板替换
|
|
|
*
|