Commit 904024be authored by 雍欢's avatar 雍欢

流程设计器

parent e82ea634
......@@ -156,8 +156,9 @@ public class ModelApplicationImpl implements ModelApplication {
mxCell rootCell = (mxCell) graphModel.getRoot();
rootCell.setAttribute("label", procDefinition.getName());
rootCell.setAttribute("code", procDefinition.getCode());
rootCell.setAttribute("formNo", procDefinition.getFormNo());
model.setXml(mxXmlUtils.getXml(codec.encode(graphModel)));
model.setImageXml("formNo");
model.setImageXml("");
modelRepository.save(model);
}
return returnVal;
......
......@@ -148,6 +148,8 @@ public class ModelController extends CommonController implements ApplicationCont
model.setProcDefinitionId(pd.getId());
model.setXml(new String(bs, StandardCharsets.UTF_8));
}
} else {
}
}
}
......
......@@ -241,7 +241,7 @@ public class ProcDefinitionApplicationImpl extends BaseApplication implements Pr
.entrySet()
.stream()
.map(e -> e.getValue())
.filter(extensionElements -> extensionElements.size() == 0)
.filter(extensionElements -> extensionElements.size() == 1)
.map(extensionElements -> extensionElements.get(0))
.filter(extensionElement -> ClassHelper.hasProperty(procDefinition.getClass(), extensionElement.getName()))
.forEach(extensionElement -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment