DbEntityManager dbEntityManager = commandContext.getDbEntityManager();
PropertyEntity historyLevelProperty = dbEntityManager.selectById(PropertyEntity.class, "historyLevel");
if (historyLevelProperty != null) {
if (processEngineConfiguration.getHistoryLevel().getId() != new Integer(historyLevelProperty.getValue())) {
historyLevelProperty.setValue(Integer.toString(processEngineConfiguration.getHistoryLevel().getId()));
dbEntityManager.merge(historyLevelProperty);
}
} else {
SchemaOperationsProcessEngineBuild.dbCreateHistoryLevel(dbEntityManager);
}
return null;