Skip to content

Commit

Permalink
Close #420: Process engine bootstrapping failed if full history was e…
Browse files Browse the repository at this point in the history
…nabled

camunda:
  generic-properties:
    properties:
      history: full
  • Loading branch information
tobiasschaefer committed Jul 10, 2022
1 parent e2d9f72 commit 0a95107
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import static io.micronaut.transaction.TransactionDefinition.Propagation.REQUIRED;
import static io.micronaut.transaction.TransactionDefinition.Propagation.REQUIRES_NEW;
import static java.util.Collections.emptyList;
import static org.camunda.bpm.engine.impl.history.HistoryLevel.HISTORY_LEVEL_FULL;

/**
* Micronaut implementation of {@link org.camunda.bpm.engine.ProcessEngineConfiguration} which is aware of transaction
Expand Down Expand Up @@ -221,6 +222,7 @@ protected InputStream getMyBatisXmlConfigurationSteamStage1() {
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/CamundaFormDefinition.xml\" />\n" + //Deployment BPMN
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/DecisionDefinition.xml\" />\n" + //Deployment DMN
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/DecisionRequirementsDefinition.xml\" />" + // Deployment DMN
(getHistoryLevel() == HISTORY_LEVEL_FULL ? " <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/HistoricJobLog.xml\" />\n" : "") + // full history
"\n" +
"\t</mappers>\n" +
"</configuration>\n";
Expand Down Expand Up @@ -253,7 +255,7 @@ protected InputStream getMyBatisXmlConfigurationSteamStage2() {
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/HistoricVariableInstance.xml\" />\n" +
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/HistoricTaskInstance.xml\" />\n" +
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/HistoricTaskInstanceReport.xml\" />\n" +
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/HistoricJobLog.xml\" />\n" +
(getHistoryLevel() != HISTORY_LEVEL_FULL ? " <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/HistoricJobLog.xml\" />\n" : "") +
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/HistoricExternalTaskLog.xml\" />\n" +
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/UserOperationLogEntry.xml\" />\n" +
" <mapper resource=\"org/camunda/bpm/engine/impl/mapping/entity/IdentityInfo.xml\" />\n" +
Expand Down

0 comments on commit 0a95107

Please sign in to comment.