Given the following data model:
x.app:

entity X{
  xprop : String
}

y.app:

entity Y : X {
  yprop : String
}

z.app:

entity Z : Y {
  zprop : String
}

and function:

function getXandY( ent : Z ) : String{
  return ent.xprop + " and " + ent.yprop;
}

The editor reports No property xprop defined for Z
yprop is okay, so it seems to only resolve from 1 level up.

This results in many errors in some files for Weblab (e.g. on MultipleChoiceAnswer which is a subtype of BasicAssignmentSubmission, which is subtype of AssignmentSubmission).

Observation 1:
When entity Z gets moved to y.app or when entity Y gets moved to x.app, resolving works correctly. Seems related to editor caching of dynamic rules, which possibly is limited to 1 file dependency only.

Observation 2:
When undoing moving entity definition (from observation 1), resolving still works fine.

Submitted by Elmer van Chastelet on 6 August 2024 at 15:05

Log in to post comments