连线校验功能打开
This commit is contained in:
parent
296ed73f8e
commit
29674d0471
@ -22,6 +22,7 @@ import com.actionsoft.bpms.bo.engine.BO;
|
||||
import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext;
|
||||
import com.actionsoft.bpms.bpmn.engine.listener.InterruptListener;
|
||||
import com.actionsoft.bpms.bpmn.engine.listener.InterruptListenerInterface;
|
||||
import com.actionsoft.bpms.bpmn.engine.listener.ListenerConst;
|
||||
import com.actionsoft.bpms.commons.database.RowMap;
|
||||
import com.actionsoft.bpms.commons.mvc.view.ResponseObject;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
@ -50,6 +51,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
* @throws Exception
|
||||
@ -58,6 +60,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
public boolean execute(ProcessExecutionContext param) throws Exception {
|
||||
|
||||
|
||||
|
||||
List<BO> gridNData=SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_N).bindId(param.getProcessInstance().getId()).list();
|
||||
String bindid=param.getProcessInstance().getId();
|
||||
StringBuffer sb=new StringBuffer();
|
||||
@ -85,6 +88,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void verifyPublish(String publishfileid,BO rowData,String bindid,StringBuffer sb,StringBuffer sb1,String type){
|
||||
defineQualityCheck(publishfileid);
|
||||
// 校验
|
||||
@ -218,6 +222,9 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -237,9 +244,9 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 判断文件属性、数据属性校验
|
||||
*
|
||||
* @param uuid
|
||||
* @return
|
||||
*/
|
||||
@ -309,9 +316,9 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
sb6.append("校验未通过,请检查模型是否都已连线!");
|
||||
sbs.append(sb6);
|
||||
}
|
||||
/*if (sbs.length()>0){
|
||||
if (sbs.length()>0){
|
||||
throw new BPMNError("0313", sbs.toString());
|
||||
}*/
|
||||
}
|
||||
|
||||
/************************************文件属性校验************************************/
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
@ -337,8 +344,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
StringBuffer sb1=new StringBuffer();
|
||||
StringBuffer sb2=new StringBuffer();
|
||||
StringBuffer sb3=new StringBuffer();
|
||||
StringBuffer sb4 = new StringBuffer();
|
||||
;
|
||||
StringBuffer sb4 = new StringBuffer();;
|
||||
sb.append("<span style='font-weight:bold'>质量校验<span><br/>");
|
||||
|
||||
|
||||
@ -444,6 +450,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static List<JSONObject> getShapeJsonToJsonObject2(String messageJson) {
|
||||
@ -522,7 +529,6 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
|
||||
/**
|
||||
* 根据uuid寻找对应的json文件即图形文件
|
||||
*
|
||||
* @param uuid 文件id
|
||||
* @return json文件
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user