|
|
@@ -30,9 +30,8 @@ public class FlowSingleLoadHandler extends LCSingleLoadHandler implements FlowLi |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void afterAdd(SwMap ret, SwMap bean) { |
|
|
|
FlowInstance flowInstance = new FlowInstance(this, us); |
|
|
|
flowInstance.create(form.getBillType()); |
|
|
|
|
|
|
|
flowInstance = FlowInstance.createByBillType(us, this, form.getBillType()); |
|
|
|
|
|
|
|
PageDataset cardDataset = LCSingleHelper.findCardDataset(datasets); |
|
|
|
ModelTable table = cardDataset.getModelTable(); |
|
|
|
bean.put(table.getIdField(), flowInstance.getProcInst().getId()); |
|
|
@@ -57,8 +56,7 @@ public class FlowSingleLoadHandler extends LCSingleLoadHandler implements FlowLi |
|
|
|
ret.put(cardDataset.name, data); |
|
|
|
|
|
|
|
//加载流程信息 |
|
|
|
flowInstance = new FlowInstance(this, us); |
|
|
|
flowInstance.load(id, taskId); |
|
|
|
flowInstance = FlowInstance.createById(us,this, id, taskId); |
|
|
|
|
|
|
|
ret.put(FlowHelper.DATASET_NAME_FLOW, DynRetBean.createBean(flowInstance.getProcInst())); |
|
|
|
ret.put(FlowHelper.DATASET_NAME_COMMENT, DynRetBean.createList(SwListData.create(flowInstance.loadComment(), 0))); |
|
|
|