|
|
@@ -28,9 +28,10 @@ public class FlowSingleLoadHandler<T extends DefaultEntity> extends LCSingleLoad |
|
|
|
bean.setEntityId(flowInstance.getProcInst().getId()); |
|
|
|
|
|
|
|
ret.put(cardDataset.name, DynRetBean.createBean(bean)); |
|
|
|
|
|
|
|
flowInstance.setPageRetExtra(ret); |
|
|
|
ret.put(FlowHelper.DATASET_NAME_FLOW, DynRetBean.createBean(flowInstance.getProcInst())); |
|
|
|
ret.put(FlowHelper.DATASET_NAME_COMMENT, DynRetBean.createList(SwListData.EMPTY)); |
|
|
|
flowInstance.setPageRetExtra(ret); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@@ -47,9 +48,9 @@ public class FlowSingleLoadHandler<T extends DefaultEntity> extends LCSingleLoad |
|
|
|
//加载流程信息 |
|
|
|
flowInstance = FlowInstance.createById(us, this, id, taskId); |
|
|
|
|
|
|
|
flowInstance.setPageRetExtra(ret); |
|
|
|
ret.put(FlowHelper.DATASET_NAME_FLOW, DynRetBean.createBean(flowInstance.getProcInst())); |
|
|
|
ret.put(FlowHelper.DATASET_NAME_COMMENT, DynRetBean.createList(SwListData.create(flowInstance.loadComment(), 0))); |
|
|
|
flowInstance.setPageRetExtra(ret); |
|
|
|
afterLoad(ret, bean); |
|
|
|
return R.success(ret); |
|
|
|
} |
|
|
|