VariableScopeImpl#getVariableNames does not take parent scopes into account

Description

Current implementation:

public Set<String> getVariableNames() {
ensureVariableInstancesInitialized();
return variableInstances.keySet();
}

Instead, the code should also get the names from the parent scopes (via getParentVariableScope()), similar to how it is done in setVariable() and hasVariable().

Environment

None

Assignee

Roman Smirnov (camunda)

Reporter

Etienne Studer

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure