Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moved the history level check into out of the HistoricVariableInstanc… #3823

Conversation

WelschChristopher
Copy link
Contributor

…eEntityManangerImpl and into the classes that called the methods.

Check List:

  • Unit tests: YES / NO / NA
  • Documentation: YES / NO / NA

…eEntityManangerImpl and into the classes that called the methods.
@@ -38,7 +39,9 @@ public Object execute(CommandContext commandContext) {
}
}
processEngineConfiguration.getTaskServiceConfiguration().getHistoricTaskService().deleteHistoricTaskLogEntriesForNonExistingProcessInstances();
processEngineConfiguration.getVariableServiceConfiguration().getHistoricVariableService().deleteHistoricVariableInstancesForNonExistingProcessInstances();
if(processEngineConfiguration.getHistoryManager().isHistoryLevelAtLeast(HistoryLevel.ACTIVITY)){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(processEngineConfiguration.getHistoryManager().isHistoryLevelAtLeast(HistoryLevel.ACTIVITY)){
if (processEngineConfiguration.getHistoryManager().isHistoryLevelAtLeast(HistoryLevel.ACTIVITY)){

added a space

@@ -146,12 +143,10 @@ public List<HistoricVariableInstanceEntity> findHistoricalVariableInstancesBySub

@Override
public void deleteHistoricVariableInstancesByTaskId(String taskId) {
if (serviceConfiguration.isHistoryLevelAtLeast(HistoryLevel.ACTIVITY)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that the if is removed shouldn't the indentation of the following lines be changed too?

@WelschChristopher WelschChristopher force-pushed the move-history-check-for-variable-deletion branch from 49d275f to c2b094e Compare January 24, 2024 14:06
@WelschChristopher WelschChristopher force-pushed the move-history-check-for-variable-deletion branch from 5e069d2 to ef62328 Compare January 24, 2024 14:56
@filiphr filiphr merged commit e578616 into flowable:main Jan 25, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants