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

    • Type: Sub-task
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.11.0, 7.11.0-alpha4
    • Component/s: engine
    • Labels:
      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: