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

Allow listeners to throw Exception without rollbacking the transaction

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.1
    • Component/s: Core

      Description

      The use case is that a sync listener is validating the creation / modification of a document. If there is a validation error, it throws an Exception.

      We want to catch the exception when creating / updating to continue to the next document to be created / updated. The transaction shouldn't be rollbacked since we may have some documents correctly created but not yet committed.

        Attachments

          Activity

            People

            • Assignee:
              troger Thomas Roger
              Reporter:
              troger Thomas Roger
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: