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

It should not be possible to correlate against a suspendend ProcessInstance

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3.0, 7.2.2, 7.3.0-alpha1
    • Component/s: engine
    • Labels:

      Description

      Steps to reproduce:

      1. start a process instance with variable "a", value "aValue"
      2. start a second process instance with variable "a", value "aValue"
      3. suspend second process instance
      4. try to correlate as follows:

        Map<String, Object> correlationKeys = new HashMap<String, Object>();
        correlationKeys.put("a", "aValue");
        runtimeService.correlateMessage("aMessageName", correlationKeys);
      

      -> a MismatchingMessageCorrelationException will be thrown:

      Cannot correlate message aMessageName with process instance business key null and correlation keys {a=aValue}: 2 executions match the correlation keys. Should be one or zero.
      

      Problem:
      The suspended process instance has been also found.

      Expected behavior:
      Only active executions will be used to correlate a message.

      Hint:
      The same with a suspended ProcessDefinition. If a ProcessDefinition is suspendend it should not be possible to correlate against it, to start a new process instance.

        Attachments

          Activity

            People

            Assignee:
            meyer Daniel Meyer
            Reporter:
            roman.smirnov Roman Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: