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

I can access variables after creating a process instance

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.6.0, 7.6.0-alpha2
    • None
    • engine

      Use Case Context

      • STP,
      • BPELish Service Compositions
      • Unit Testing

      When staring a process instance, I cannot access the variables without making an addinitional variable query. Downsides:

      • If the process instance did not reach a wait-state, it runs straight through and I can only retrieve the variables from history. Otherwise I can use the runtime service as well
      • I need to do an additional query which is not as efficient than having returned the variables right away.

      AT:

      • When I create a new process instance, the return object includes variables
      • the Variables returned are defined as follows:
        • process instance scope variables only
      • Java and Rest API

      NOTEs by thorben.lindhauer:

      • we should not extend the ProcessInstance interface with a method which returns variables because the same interface is also returned by the ProcessInstanceQuery
      • so we must probably create a sub-interface
      • But: we cannot have Methods like RuntimeService.createProcessInstanceByXX() return that sub-interface as it would break binary backwards compatibility (code compiled against the old methods signature could not be linked against the new method sign. even if if would still would if re-compiled)
      • So we will add a new method to the fluent create process instance builder

        This is the controller panel for Smart Panels app

              thorben.lindhauer Thorben Lindhauer
              meyer Daniel Meyer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: