I can provide a scope reference when setting a variable #2143
Labels
scope:core-api
Changes to the core API: engine, dmn-engine, feel-engine, REST API, OpenAPI
type:feature
Issues that add a new user feature to the project.
This issue was imported from JIRA:
What is this name?
This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.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:
There may be other solutions, input is welcome.
Links:
The text was updated successfully, but these errors were encountered: