Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3544

[WON'T FIX] Refactor preInteractionClosed calling of completeAndPublishCommand, instead treat similar to audit trail publisher.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0.0-RC2
    • 2.0.0-RC4
    • Core
    • None

    Description

      In InteractionServiceDefault#preInteractionClosed() we currently call the `completeAndPublishCurrentCommand` first, and then later we loop around all transactionBoundaryAwareBeans callback, tell them to do their stuff.  One of those is auditing (EntityChangePublishing).

      I don't see any reason that command publishing is any different from auditing, so I think we should refactor to use the same callbacks..

      Note that ExecutionPubilshing is not a transactionally aware aspect ... we publish that more eagerly, as each action invocation (or property edit) is executed .

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: