Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22179

Implement checkRules function

    XMLWordPrintable

    Details

      Description

      The central logic of the system, for now, we will assume that we have a unique rule:

      • match: any Record
      • duration before cutoff: 0
      • cutoff duration: nb_of_days_based_on_a_property or 30 day
      • cutoff_action: operation_id_based_on_a_property or null
      • disposal_action: operation_id_based_on_a_property or Document.Delete

      operation ids are aimed to disapeared after we implement the real rules system.

      For a state unmanaged without dates:

      • Calculate and sets dates

      For a state unmanaged with dates:

      • if cutoff_at date is reached: execute cutoff action + change state

      For a state cutoff, with :

      • if disposal_at date is reached: execute disposal action + change state

      For a state disposal:

      • don't do anything

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: