StandardGraphPropertyVariable no longer returns child index variables for array property variables
|Assignee:||Tuukka Lehtonen||% Done:|
|Category:||Variable||Spent time:||1.00 hour|
|Release notes:||Fixed StandardGraphPropertyVariable regression caused by r30486 in Simantics 1.17.1.|
|Velocity based estimate||-|
|Release||Simantics 1.18.1||Release relationship||Auto|
final Variable indexVariable = editedVariable.getPossibleChild(graph, range.toChildReferenceString()); if (indexVariable == null) throw new UnsupportedOperationException("index variables not supported " + editedVariable.getURI(graph));
now fails but was working in versions prior to 1.17.1.
The regression was caused by r30486 which changed StandardGraphPropertyVariable.getPossibleChildVariableMap to return null if there is no Resource representation for the variable which it didn't previously do.
Fixed StandardGraphPropertyVariable.getPossibleChildVariableMap to return All.standardPropertyDomainChildren instead of null if there property variable has no resource representation.
This fixes behaviour committed in r30486 that broke previous use cases where indexing of an array property variable was attempted using getPossibleChild or similar methods.