提交 6325752a 编写于 作者: zhouweidong's avatar zhouweidong

动态模型log

上级 5da7f8bd
......@@ -34,6 +34,8 @@ import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import org.flowable.bpmn.model.*;
import org.flowable.bpmn.model.Process;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamReader;
......@@ -68,6 +70,7 @@ public class DELogicAspect {
REMOTE
}
private static Logger logger = LoggerFactory.getLogger(DELogicAspect.class);
private static BpmnXMLConverter bpmnXMLConverter = new BpmnXMLConverter();
private final ExpressionParser parser = new SpelExpressionParser();
private ConcurrentMap<String, DELogic> deLogicMap = new ConcurrentHashMap<>();
......@@ -175,7 +178,7 @@ public class DELogicAspect {
* @param entity
*/
private void executeLogic(File bpmnFile, Object entity, LogicMode logicMode) {
log.debug("开始执行实体处理逻辑[{}]", bpmnFile.getName());
log.debug("开始执行[{}]实体[{}]处理逻辑",entity.getClass().getSimpleName(), bpmnFile.getName());
String bpmnId = DigestUtils.md5DigestAsHex(bpmnFile.getName().getBytes());
DELogic logic = getDELogic(bpmnFile, entity, logicMode);
if (logic == null) {
......@@ -198,8 +201,9 @@ public class DELogicAspect {
fillGlobalParam(kieSession, subLogic.getProcess(), entity);
}
}
kieSession.setGlobal("logger",logger);
kieSession.startProcess(mainProcess.getId());
log.debug("实体处理逻辑[{}]执行结束", bpmnFile.getName());
log.debug("[{}]实体[{}]处理逻辑执行结束",entity.getClass().getSimpleName(), bpmnFile.getName());
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册