Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10130 I can set a removal time for processes asynchronously
  3. CAM-10133

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

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.11.0, 7.11.0-alpha4
    • None
    • 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

        This is the controller panel for Smart Panels app

              thorben.lindhauer Thorben Lindhauer
              tassilo.weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: