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

Delete orphan workflows and tasks

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Orphaned workfows can be deleted daily along with wokflows in state "done" or "canceled'. A new management endpoint is available to GC orphaned, done or canceled workflows on demand.
    • Release Notes Description:
      Hide

      The DocumentRoutingWorkflowInstancesCleanup listener (triggered daily), which removes the workflow in state done or canceled, has been reimplemented to leverage BAF. Note that the tasks related to a removed workflow are also removed.

      By setting the nuxeo.routing.cleanup.workflow.instances.orphan conf property to true (false by default), the DocumentRoutingWorkflowInstancesCleanup listener will also remove orphan workflows daily.

      A new management rest API endpoint is also available to perform a workflow garbage collection on demand. See documentation.

      Show
      The DocumentRoutingWorkflowInstancesCleanup listener (triggered daily), which removes the workflow in state done or canceled , has been reimplemented to leverage BAF. Note that the tasks related to a removed workflow are also removed. By setting the nuxeo.routing.cleanup.workflow.instances.orphan conf property to true ( false by default), the DocumentRoutingWorkflowInstancesCleanup listener will also remove orphan workflows daily. A new management rest API endpoint is also available to perform a workflow garbage collection on demand. See documentation .
    • Backlog priority:
      800
    • Sprint:
      nxplatform #82, nxplatform #83
    • Story Points:
      8

      Description

      Steps to reproduce:

      1. Create a Folder
      2. Create a File in this folder
      3. Start a workflow for this File document
      4. Get the id of the folder, the file, the workflow and the task which were created
      5. Delete the folder thanks to its id with curl -X DELETE -H 'Authorization: Basic dsfdsdsfu' -H 'content-type: application/json' https://xxxx/nuxeo/api/v1/id/xxxxxx
      6. Observe that the workflow and the task still exist
      7. Observe in the Audit that the Folder has been deleted

      Expected behavior: the Workflow and Task documents are also deleted

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: