camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.08k stars 1.54k forks source link

Set removal time batch operation useless when configuring history level to none #2814

Open ThorbenLindhauer opened 1 year ago

ThorbenLindhauer commented 1 year ago

This issue was imported from JIRA:

Field Value
JIRA Link CAM-14931
Reporter @tasso94
Has restricted visibility comments true

Environment (Required on creation):

Any still supported Camunda 7 version.

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

Steps to reproduce (Required on creation):

Observed Behavior (Required on creation):

The removal time is not set.

Expected behavior (Required on creation):

Removal time is set.

Root Cause (Required on prioritization):

The historic process instance query returns an empty list when the history level is configured to NONE <1>.

Solution Ideas (Optional):

  1. Introduce a new built-in history level that doesn't produce history but allows to perform queries.
    • Cons
    • Cockpit might not be usable since history queries take a very long to return
  2. Register a custom history level that doesn't produce history but allows to perform queries.
    • Cons
    • User needs to write custom code
  3. Prevent disabling history queries for batch operations needed for history cleanup.
    • Cons
    • There might be other scenarios in which querying for history data is beneficial that cannot be achieved with this solution

Hints (optional):

-

<1> **Links:**
garima-camunda commented 9 months ago

Related support tickets

garima-camunda commented 7 months ago

Here is another support ticket https://jira.camunda.com/browse/SUPPORT-19568 where customer could not use Batch Operation in Cockpit to delete "running process instances" because history level was set as "none". ( please see this screenshot)

@toco-cam , @tasso94 - fyi

toco-cam commented 7 months ago

@tasso94 will take care of this and schedule it for a later patch (> 7.20.5)