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

make bulk lifecycle change optional

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: Core
    • Upgrade notes:
      Hide

      To avoid recursion for specific transitions on a specific document type, use the noRecursionForTransitions attribute when specifying the association from a document type to a lifecycle. Example:

      <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="types">
        <types>
          <type name="MyFile" noRecursionForTransitions="toFoo,toBar">mylifecycle</type>
        </types>
      </extension>
      
      Show
      To avoid recursion for specific transitions on a specific document type, use the noRecursionForTransitions attribute when specifying the association from a document type to a lifecycle. Example: <extension target= "org.nuxeo.ecm.core.lifecycle.LifeCycleService" point= "types" > <types> <type name= "MyFile" noRecursionForTransitions= "toFoo,toBar" > mylifecycle </type> </types> </extension>

      Description

      At the moment, either we have the BulkLifeCycleChangeListener and all lifecycle change recurse in folders, or we don't.
      We should be able to desactivate the recursion by passing context data in the doc before the lifecycle change:
      client code:
      doc.putContextData("NON_RECURSIVE_LIFECYCLE_KEY", true);
      doc.followTransition("mytrans")

      in BulkLifeCycleChangeListener, check for the data, and if explicitely true then return before recursing

        Attachments

          Activity

            People

            • Assignee:
              arussel Alexandre Russel
              Reporter:
              arussel Alexandre Russel
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: