We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e11c67 + 517b58c commit 4e125b0Copy full SHA for 4e125b0
1 file changed
src/main/java/org/geppetto/datasources/ADataSourceService.java
@@ -144,10 +144,12 @@ public void fetchVariable(String variableId) throws GeppettoDataSourceException
144
{
145
Variable fetchedVariable = VariablesFactory.eINSTANCE.createVariable();
146
fetchedVariable.setId(variableId);
147
- getGeppettoModelAccess().addVariable(fetchedVariable);
148
Query fetchVariableQuery = getConfiguration().getFetchVariableQuery();
149
ExecuteQueryVisitor runQueryVisitor = new ExecuteQueryVisitor(fetchedVariable, getGeppettoModelAccess());
150
runQueryVisitor.doSwitch(fetchVariableQuery);
+ if( !(fetchedVariable.getAnonymousTypes().isEmpty()) || !(fetchedVariable.getTypes().isEmpty())) {
151
+ getGeppettoModelAccess().addVariable(fetchedVariable);
152
+ }
153
}
154
155
/*
0 commit comments