/**
* 配置开始事件.
*/
public void processStartEvent(Node node, BpmnModel bpmnModel, int priority,
BpmConfBase bpmConfBase) {
BpmConfNodeManager bpmConfNodeManager = getBpmConfNodeManager();
BpmConfNode bpmConfNode = bpmConfNodeManager.findUnique(
"from BpmConfNode where code=? and bpmConfBase=?",
node.getId(), bpmConfBase);
if (bpmConfNode == null) {
bpmConfNode = new BpmConfNode();
bpmConfNode.setCode(node.getId());
bpmConfNode.setName(node.getName());
bpmConfNode.setType(node.getType());
bpmConfNode.setConfUser(2);
bpmConfNode.setConfListener(0);
bpmConfNode.setConfRule(2);
bpmConfNode.setConfForm(2);
bpmConfNode.setConfOperation(2);
bpmConfNode.setConfNotice(0);
bpmConfNode.setPriority(priority);
bpmConfNode.setBpmConfBase(bpmConfBase);
bpmConfNodeManager.save(bpmConfNode);
}
FlowElement flowElement = bpmnModel.getFlowElement(node.getId());
// 配置监听器
processListener(flowElement.getExecutionListeners(), bpmConfNode);