Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object path ending in association does not resolve to object #133

Open
domi-b opened this issue Oct 2, 2024 · 0 comments
Open

Object path ending in association does not resolve to object #133

domi-b opened this issue Oct 2, 2024 · 0 comments

Comments

@domi-b
Copy link
Contributor

domi-b commented Oct 2, 2024

Wenn ein Objektpfad bei einer Association endet, enthält das Value-Objekt (z.B. für einen Funktionsaufruf) nach dem Evaluieren des Pfades nicht das referenzierte IomObject.

Beispiel:

...

ASSOCIATION Assoc1 =
  Geometrie -- {0..*} BaseClassA1;
  AssocType -<> {1} BaseClassB1;
END Assoc1;

CONSTRAINTS OF BaseClassA1 =
  !! OK, Objektpfad über Association zu Attribut
  MANDATORY CONSTRAINT ConstraintC1 : AssocType->Art == #T1;

  !! Nicht OK, Objektpfad endet bei Association
  MANDATORY CONSTRAINT ConstraintC2 : INTERLIS.elementCount(GeoW_FunctionsExt.Filter(THIS->AssocType, "WHERE Art == #T2;")) >= 2;
END;

...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant