Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-3636

I can correlate a message exclusively

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.3.0, 7.3.0-alpha4
    • None
    • engine

      Context:

      • If multiple threads correlate multiple messages to the same subscription concurrently, all except one fail with optimistic locking.
      • This is OK and one of the fundamental design decisions on the process engine
      • The behavior is undesirable if between the message event and the transaction boundary (where OptimisticLockingException occurs) user code with non-transactional side effects is executed.
      • The default answer to this would be to place the transaction boundary before the point where the user code is invoked
      • But: this is undesirable in case the result of the user code invocation is required synchronously by the code executing the correlation.

      ==

      AT:

      • Optionally, I can correlate a message "exclusively" ensuring that a pessimistic lock is acquired on the event subscription, before the waiting execution is signalled

      ==

      Api Idea: runtimeService.createMessageCorrelation()...correlateExclusively()

        This is the controller panel for Smart Panels app

              sebastian.menski Sebastian Menski
              meyer Daniel Meyer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: