Closed ghost closed 1 year ago
This seems to be a bug in the AASX Package Explorer. If you take a look at DotAAS Part 1 V2.0.1 p. 233 following, this is stated:
"Qualifiable": {
"type": "object",
"properties": {
"qualifiers": {
"type": "array",
"items": { "$ref": "#/definitions/Constraint" }
}
}
}
Thank you for the reply, I will repost my issue there :)
Closed as not related to BaSyx.
How to reproduce
The error
When trying to invoke the function you will get an answer, that it is not possible for that path, because
Qualifiable.getQualifiers
always returns an empty LinkedHashSetProposed solution
The BaSyx backend checks, if the operation is a delegated one (undelegated operations are not yet supported AFAIK). To check that, the
OperationProvider.invokeOperation
callsDelegatedInvocationManager.isDelegatingOperation
. Here it gets all qualifiers from the operation and tries to find one that has the above mentioned qualifier in it. Problem is, that when callingoperation.getQualifiers
it tries to retrieve the field with the name "qualifiers
" (Qualifiable.QUALIFIERS
). But when looking at the json (and thus the internal representation), there is no field "qualifiers
" as it is called "constraints
"A quick fix would be to set
Qualifiable.QUALIFIERS
to"constraints"
and possibly renamingQualifiable.QUALIFIERS
toQualifiable.CONSTRAINTS
Additional remarks
It could also be an error coming from the AASX Package Explorer, if so I will post my issue there.