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

When starting a process instance via submit for API, the variables are not accessible in a start event execution listener

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.14.0, 7.13.5, 7.14.0-alpha3
    • 7.13.0
    • engine
    • None
    • Camunda 7.13.0

    Description

      What are the steps to reproduce your problem?

      1. Deploy the attached formsTest.bpmn on a 7.13.0 
      2. Open Tasklist and try to start a Forms Test process
      3. You should see the error message (error.png attachment)

      What is the problem?

      • The start event listener attempts to validate the contents of the input variables however it cannot read them. Accordingly, the process instance fails to start.

      What would be the expected behavior:

      • The variables are accessible in the start listener and the process instance starts successfully.

      Hints (optional):

      • This is a regression that was introduced with https://jira.camunda.com/browse/CAM-10978.
      • In the case of submitting a form, the variables are still put into the process instance start context, and the context receives the callback only on PvmAtomicOperationTransitionNotifyListenerEnd. A solution should immediately set the variables when the API for starting is called.

      Workaround

      The listener can be moved to the `take` event on the sequence flow leaving the start event.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          1. formsTest.bpmn
            3 kB
            Richard Kohl
          2. error.png
            23 kB
            Richard Kohl

          Issue Links

            Activity

              People

                thorben.lindhauer Thorben Lindhauer
                richard.kohl Richard Kohl
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce