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

Details

    • Sub-task
    • Resolution: Fixed
    • L3 - Default
    • 7.11.0, 7.11.0-alpha4
    • None
    • engine
    • None

    Description

      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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce