Page 1 of 1


PostPosted: Thu Jan 28, 2021 9:34 am
I have tested MBPLE both in Cameo Systems Modeler 19.0 SP3 and SP4. There are some things I am unable to do, and I was wondering if anyone can help me?

1. The Variation Point type "Element Tag" seems to only work for Enumerate Features
I have tried using "Element Tag" variation points with Features that are boolean, but it does not show correctly with the preview. However, if I use enumerate Features, it works just fine. This seems to be a bug?

2. I am unable to change the "when" property on a Time event. I have tried Primitive Property, Element Property and Tag Property, but not correspind. I believe Primitive Property should work, as it is essentially a string, but it seems that somehow the "when" property is actually not typed at all? And for this reason cannot be changed? I have used time events on transitions to self in a state machine, and would like to be able to change the interval at which it transitions. A workaround is, of course, to create multiple transitions with different time events and then use Existence Variation Points on them, but that is a pretty messy solution...

3. I have trouble writing validation rules for relations between enumerate features, as I have trouble accessing the enumerate literal values of the feature. If anyone could provide me with an example of a validation rule relation between two enumerate features, that would be extremely helpful!

Thank you,


PostPosted: Tue Mar 16, 2021 8:15 am
by ogirdor
Hello Ida,

I do not have much experience with MBPLE, but I have tested it a little bit in SP4. Regarding your third question: if I have an enum "MyEnum" in Package "MyPackage" with literals "Lit1", "Lit2" and "Lit3", then you can refer to the first literal in an OCL validation rule by writing "MyPackage::MyEnum::Lit1". If the names you are using include spaces, replace them with underscores.


PostPosted: Tue Mar 16, 2021 9:13 am
Hello ogridor,

Thank you for this! I have tested, an with this I am able to compare specific enumeration literals. I didn't know they have the same access sematic as stereotypes when writing OCL, but now I do. Thank you very much!