public void initHistoryLevel() { if (historyLevel == null) { historyLevel = HistoryLevel.getHistoryLevelForKey(getHistory()); } }
public void initHistoryLevel() { if (historyLevel == null) { historyLevel = HistoryLevel.getHistoryLevelForKey(getHistory()); } }
protected void copyHistoryConfig(ProcessEngineConfigurationImpl flowable6Configuration, org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl flowable5Configuration) { flowable5Configuration.setHistoryLevel(HistoryLevel.getHistoryLevelForKey(flowable6Configuration.getHistoryLevel().getKey())); }
protected HistoryLevel getProcessDefinitionHistoryLevel(String processDefinitionId) { HistoryLevel processDefinitionHistoryLevel = null; try { ProcessDefinition processDefinition = ProcessDefinitionUtil.getProcessDefinition(processDefinitionId); BpmnModel bpmnModel = ProcessDefinitionUtil.getBpmnModel(processDefinitionId); Process process = bpmnModel.getProcessById(processDefinition.getKey()); if (process.getExtensionElements().containsKey("historyLevel")) { ExtensionElement historyLevelElement = process.getExtensionElements().get("historyLevel").iterator().next(); String historyLevelValue = historyLevelElement.getElementText(); if (StringUtils.isNotEmpty(historyLevelValue)) { try { processDefinitionHistoryLevel = HistoryLevel.getHistoryLevelForKey(historyLevelValue); } catch (Exception e) {} } } if (processDefinitionHistoryLevel == null) { processDefinitionHistoryLevel = this.historyLevel; } } catch (Exception e) {} return processDefinitionHistoryLevel; }
if (StringUtils.isNotEmpty(historyLevelValue)) { try { historyLevel = HistoryLevel.getHistoryLevelForKey(historyLevelValue);