连线校验问题修改
This commit is contained in:
parent
368e079d95
commit
5c42d24f2e
@ -279,8 +279,14 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
if (shapeName.equals("linker")) {
|
||||
JSONObject from = o.getJSONObject("from");
|
||||
JSONObject to = o.getJSONObject("to");
|
||||
if (to==null||from==null){
|
||||
throw new BPMNError("0313", "出入线未与其他形状进行关联,请查看模型,连线校验未通过!!!");
|
||||
}
|
||||
String from_id = from.getString("id");
|
||||
String to_id = to.getString("id");
|
||||
if (UtilString.isEmpty(from_id)||UtilString.isEmpty(to_id)){
|
||||
throw new BPMNError("0313", "出入线未与其他形状进行关联,请查看模型,连线校验未通过!!!");
|
||||
}
|
||||
if (UtilString.isNotEmpty(from_id)) {
|
||||
list_linker.remove(from_id);
|
||||
}else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user