Open ThorbenLindhauer opened 8 years ago
This comment was imported from JIRA and written by user J884YbDWhat 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.
I think, solution 1, "make it possible to configure a service task to become a scope", would be the easiest way to use it and will be compatible backwards, if "become a scope" is not checked as default.
This issue was imported from JIRA:
Problem description:
When executing a non-scope service task that is implemented by a JavaDelegate, the delegation code may call
DelegateExecution#setVariableLocal
. The historic variable instance that results from this call references an activity instance id. This is either the id of the current activity instance or of the parent BPMN scope instance (confer https://github.com/camunda/camunda-bpm-platform/blob/7.4.0/engine/src/main/java/org/camunda/bpm/engine/impl/history/producer/DefaultHistoryEventProducer.java#L302-L308). For a non-scope service task, the actual value is hard to predict because which one is chosen depends on whether the task is executed by a concurrent or scope execution.Desired behavior:
It should be possible to control which scope a historic variable instance is assigned to via API.
Solution possibilities:
execution.setVariableLocal("name", "value", "activityId")
) and that sets the isConcurrentLocal flag to true if the activity is not a scopeNotes:
Links: