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

I can provide a scope reference when setting a variable

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • engine

      Problem:

      Wen setting a variable, I can either set it in a local scope or in the global (usually process instance) scope.
      There are many usecases where the global scope is not appropiate (multi instance, ...)
      There are also many usecases where the local scope is not appropriate (for instance if a task is a scope, local variables will destroyed at the end of the scope).

      Solution:

      What we are looking for is a solution which allows users to specify the target scope for a variable with greater flexibility.

      One possibility would be to add a "targetScope" attribute to output mappings which allow users to provide the id of a parent activity.
      Users could then set variables "local" and map them to the correct scope using the mapping.
      Note that not all operations currently allow users to pass local variables:
      Known suspects:

      • Message correlation
      • resultVariable attribute for service tasks

      There may be other solutions, input is welcome.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              meyer Daniel Meyer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: