Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3555

Flexibilize task deletion and archiving trigger

    XMLWordPrintable

Details

    • Critical
    • Add flexibility to task auto-deletion. Now user can provide workflow statuses at which task will be archived and deleted from task list

    Description

      problem

      We have the workflow action \editor_Workflow_Actions::deleteOldEndedTasks which is archiving AND deleting tasks which are:

      • not modified since $config->runtimeOptions->taskLifetimeDays
      • AND have theĀ  status ended

      This is to unflexible for the client needs.

      What clients need is

      • If the task is not modified since $config->runtimeOptions->taskLifetimeDays AND one or more of the following 3 conditions are true
        • the task is in status ended (current condition)
        • AND/OR the workflow is in the workflow step "workflow finished"
        • AND/OR the workflow is in the workflow step "no workflow"
          (of course 2nd and 3rd condition will never be true at the same time )
      • then the following should happen
        • the task is exported as xliff2
        • and after the export it is deleted

      solution

      The period how long a task should not be modified can already be defined by the existing taskLifetimeDays, so what must be implemented is to flexibilize the second condition which is currently hardcoded to task.status = end. To explain the above 2 remaining workflow based additional conditions:

      • OR the task.workflowStepName is completed (\editor_Workflow_Default::STEP_WORKFLOW_ENDED
      • OR the task.workflowStepName is "no workflow (\editor_Workflow_Default::STEP_NO_WORKFLOW)

      The configuration of the second condition should come from the LEK_workflow_action parameters field, which might be a json. The default should be the task.status = end as currently.

      Attachments

        Activity

          People

            oleksandrmikhliaiev Oleksandr Mikhliaiev
            tlauria Thomas Lauria
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: