Using Java API, I can set a removal time for processes asynchronously without respecting hiearchies

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.11.0, 7.11.0-alpha4
    • Affects Version/s: None
    • Component/s: engine
    • None

      AT

      • Removal time is calculated based on process engine configuration settings for removal time strategy (start, end, none) and TTL of local process definition:
        Batch batch = historyService.setRemovalTimeToHistoricProcessInstancesAsync()
              .byQuery(query)
              .executeAsync();
        
        • if removal time strategy is set to ...
          • start: removal time = startTime + TTL
          • end: removal time = endTime + TTL
            • if process instance has not been ended and removal time strategy is set to end, instance is not updated
          • none: no update is performed
      • Removal time can be set to an absolute value or to null:
        Batch batch = historyService.setRemovalTimeToHistoricProcessInstancesAsync()
              .byQuery(query)
              .removalTime(new Date())
              .executeAsync();
        
        • process engine configuration settings in terms of removal time strategy (start, end, none) are disrespected
      • Throw BadUserRequestException if no historic process instances can be found

            Assignee:
            Thorben Lindhauer
            Reporter:
            Tassilo Weidner-Mühl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: