Skip to content

Relationship between OBJECTS and FORMULA #96

Description

@mjacoby

What is the relationship between OBJECTS and FORMULA?

Assume this example rule which is a valid rule according to the grammar

ACCESSRULE:
  ATTRIBUTES:
    CLAIM("email")
  RIGHTS: READ
  ACCESS: ALLOW
  OBJECTS:
    IDENTIFIABLE $sm("*")
  FORMULA:
    $match(
      $aasdesc#endpoints[].interface $gt REFERENCE($cd(*)#idShort),
      $startswith($aas#submodels.id, $smdesc#semanticId.keys)
    )

Clearly, this does not make sense as the object we are talking about is a submodel and therefore has no AAS descriptor, AAS, or submodel descriptor.

The only thing that might be related to this I could find in the specification was

A formula referring to undefined attributes shall result in false. Any type of error during the evaluation of a formula shall be treated as if the formula resulted in false. Source

I assume that by undefined attributes you mean exactly those elements that don't make sense. However, we need a formal definition of what undefined attributes are and I think this depends on OBJECTS.
A table/matrix might be a suitable way to represent this, at least in the case where we have a single entry in OBJECTS. Having multiple OBJECTS entries targeting different AAS element types probably causes a lot of issues and should prohibit the use of most (if not all) expressions targeting AAS elements in the formula.

  • I have signed the required Developer Certificate of Origin (DCO) already.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions