|
@@ -45,46 +45,73 @@ public class CommonFileController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- private FlowConstructor flowConstructor = FlowConstructor.init(
|
|
|
-
|
|
|
- new ExampleAbstract() {
|
|
|
- @Override
|
|
|
- public String getCode() {
|
|
|
- return "test";
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void end() {
|
|
|
- ExampleInfo cacheData = getCacheData(ExampleInfo.class);
|
|
|
- System.err.println("缓存 " + cacheData);
|
|
|
- System.err.println("流程结束了");
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
-
|
|
|
- @GetMapping("test")
|
|
|
- public R test() {
|
|
|
- HashMap<String, String> map = new HashMap<>();
|
|
|
- map.put("processInfoId", "1111111111111111111111");
|
|
|
- map.put("processTenantId", "222222222222222222222");
|
|
|
- ExampleResult result = flowConstructor.create(123456L, "测试开始流程", map);
|
|
|
- return R.success(result);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- @GetMapping("jump")
|
|
|
- public R jump(@RequestParam("buttonId") Long buttonId) {
|
|
|
-
|
|
|
-
|
|
|
- flowConstructor.jump(123456L, buttonId, "测试流程运行", null).after(() -> {
|
|
|
-
|
|
|
- int i = 1 / 0;
|
|
|
-
|
|
|
- });
|
|
|
- return R.success();
|
|
|
- }
|
|
|
+// private FlowConstructor flowConstructor() {
|
|
|
+// return FlowConstructor.init(
|
|
|
+//
|
|
|
+// new ExampleAbstract() {
|
|
|
+// @Override
|
|
|
+// public String getCode() {
|
|
|
+// return "test";
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Override
|
|
|
+// public void end() {
|
|
|
+// ExampleInfo cacheData = getCacheData(ExampleInfo.class);
|
|
|
+// System.err.println("缓存 " + cacheData);
|
|
|
+//
|
|
|
+//
|
|
|
+// System.err.println("流程结束了");
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Override
|
|
|
+// public void reject(String code) {
|
|
|
+// System.out.println("已拒绝该流程");
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Override
|
|
|
+// public String circulation(String code) {
|
|
|
+// switch (code) {
|
|
|
+// case "add":
|
|
|
+// return "addFlow";
|
|
|
+// case "remove":
|
|
|
+// return "removeFlow";
|
|
|
+// }
|
|
|
+// return super.circulation(code);
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// );
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// @GetMapping("test")
|
|
|
+// public R test() {
|
|
|
+// HashMap<String, String> map = new HashMap<>();
|
|
|
+// map.put("processInfoId", "1111111111111111111111");
|
|
|
+// map.put("processTenantId", "222222222222222222222");
|
|
|
+//
|
|
|
+//
|
|
|
+// ExampleResult result = flowConstructor().create(123456L, "测试开始流程", map);
|
|
|
+//
|
|
|
+// result.after(() -> {
|
|
|
+//
|
|
|
+//
|
|
|
+// });
|
|
|
+//
|
|
|
+// return R.success(result);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// @GetMapping("jump")
|
|
|
+// public R jump(@RequestParam("buttonId") Long buttonId) {
|
|
|
+//
|
|
|
+// flowConstructor().jump(123456L, buttonId, "测试流程运行", null).after(() -> {
|
|
|
+//
|
|
|
+// int i = 1 / 0;
|
|
|
+//
|
|
|
+// });
|
|
|
+// return R.success();
|
|
|
+// }
|
|
|
|
|
|
}
|
|
|
|