magic draw – Using OCL to initialize variables for simulation with …

Of course it should work. I understand that MagicDraw uses Eclipse OCL although they have never asked for permission/advice or offered any support. Using the Eclipse OCL editor for RoyalAndLoyal.ocl the following parses ok. context LoyaltyAccount::points : Integer init : 0 But if the final : is removed to imitate your example, the editor reports “mismatched input ‘:’ expecting ‘ (‘” It would …

Read More