*/
public void processGlobal(BpmnModel bpmnModel, int priority,
BpmConfBase bpmConfBase) {
Process process = bpmnModel.getMainProcess();
BpmConfNodeManager bpmConfNodeManager = getBpmConfNodeManager();
BpmConfNode bpmConfNode = bpmConfNodeManager.findUnique(
"from BpmConfNode where code=? and bpmConfBase=?",
process.getId(), bpmConfBase);
if (bpmConfNode == null) {
bpmConfNode = new BpmConfNode();
bpmConfNode.setCode(process.getId());
bpmConfNode.setName("全局");
bpmConfNode.setType("process");
bpmConfNode.setConfUser(2);
bpmConfNode.setConfListener(0);
bpmConfNode.setConfRule(2);
bpmConfNode.setConfForm(0);
bpmConfNode.setConfOperation(2);
bpmConfNode.setConfNotice(2);
bpmConfNode.setPriority(priority);
bpmConfNode.setBpmConfBase(bpmConfBase);
bpmConfNodeManager.save(bpmConfNode);
}
// 配置监听器
processListener(process.getExecutionListeners(), bpmConfNode);