|
@@ -58,7 +58,9 @@ public class FlowConstructor {
|
|
|
ExampleInfoEx exampleInfo = new ExampleInfoEx();
|
|
|
exampleInfo.setProcessInfoId(flowInfo.getId());
|
|
|
exampleInfo.setFlowLinkNo(flowLinkNo);
|
|
|
- exampleInfo.setCacheData(JSONObject.toJSONString(exampleAbstract.cacheData));
|
|
|
+ if (ObjectUtil.isNotEmpty(exampleAbstract.cacheData)) {
|
|
|
+ exampleInfo.setCacheData(JSONObject.toJSONString(exampleAbstract.cacheData));
|
|
|
+ }
|
|
|
|
|
|
ExampleDetails startExampleDetails = new ExampleDetails();
|
|
|
startExampleDetails.setRemarks(remarks);
|
|
@@ -137,6 +139,14 @@ public class FlowConstructor {
|
|
|
|
|
|
ExampleInfo exampleInfo = exampleInfoResult.getData();
|
|
|
|
|
|
+ // 获取流程缓存
|
|
|
+ exampleAbstract.cacheData = exampleInfo.getCacheData();
|
|
|
+
|
|
|
+ // 赋值新缓存
|
|
|
+ if (ObjectUtil.isNotEmpty(exampleAbstract.cacheData)) {
|
|
|
+ exampleInfo.setCacheData(JSONObject.toJSONString(exampleAbstract.cacheData));
|
|
|
+ }
|
|
|
+
|
|
|
// 调用方法查看是否有指定跳转节点,没有则正常流转
|
|
|
GetNodeButtonVo getNodeButtonVo = new GetNodeButtonVo();
|
|
|
getNodeButtonVo.setProcessTenantId(exampleInfo.getProcessTenantId());
|
|
@@ -152,7 +162,6 @@ public class FlowConstructor {
|
|
|
exampleInfo.setProcessNodeId(processNodeButton.getJumpNodeId());
|
|
|
exampleInfo.setProcessNodeCode(processNodeButton.getProcessNodeCode());
|
|
|
|
|
|
-
|
|
|
// 流程正常结束
|
|
|
if (processNodeButton.getJumpNodeId().equals(FlowConstant.OVER_PROCESS_FLAG)) {
|
|
|
exampleInfo.setComplete(StatusConstant.YES);
|
|
@@ -170,12 +179,14 @@ public class FlowConstructor {
|
|
|
exampleInfo.setComplete(StatusConstant.No);
|
|
|
}
|
|
|
|
|
|
+ // 流程明细
|
|
|
ExampleDetails startExampleDetails = new ExampleDetails();
|
|
|
startExampleDetails.setRemarks(remarks);
|
|
|
startExampleDetails.setProcessNodeId(processNodeButton.getProcessNodeId());
|
|
|
startExampleDetails.setProcessNodeButtonId(processNodeButton.getId());
|
|
|
startExampleDetails.setNameType(processNodeButton.getNameType());
|
|
|
|
|
|
+ // 创建vo
|
|
|
ExampleInfoEx exampleInfoEx = BeanUtil.toBean(exampleInfo, ExampleInfoEx.class);
|
|
|
exampleInfoEx.setExampleDetails(startExampleDetails);
|
|
|
|