[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please have a look to the support pages of our website : http://m2doc.org/support/
Current behavior
This is an issue following the discussion here: https://forum.mbse-capella.org/t/type-issue-when-checking-for-diagram-existence/5103/5
In short:
When using isRepresentationDescriptionName() on a collection (returns Sequence[bool]), all following calls of isRepresentationDescriptionName() in a conditional expression raise a The predicate never evaluates to a boolean type ([Sequence(boolean)]) error even when they are not checking on a collection.
This was tested by using three blocks of code
Checking on element -> No error
Checking on collection (error message circumvented by using ->exist(b | b) -> No error
Checking on element -> Error
Expected behavior
The third block should exhibit the same behaviour as the first block since it the code is identical.
Minimal reproduction of the problem with instructions
I'm submitting a...
Current behavior
This is an issue following the discussion here: https://forum.mbse-capella.org/t/type-issue-when-checking-for-diagram-existence/5103/5 In short: When using
isRepresentationDescriptionName()
on a collection (returns Sequence[bool]), all following calls ofisRepresentationDescriptionName()
in a conditional expression raise aThe predicate never evaluates to a boolean type ([Sequence(boolean)])
error even when they are not checking on a collection.This was tested by using three blocks of code
->exist(b | b)
-> No errorExpected behavior
The third block should exhibit the same behaviour as the first block since it the code is identical.
Minimal reproduction of the problem with instructions
Example model and template provided here. ExampleProject.zip
What is the motivation / use case for changing the behavior?
Error should be consistently thrown for same code block regardless of position in document.
Environment