Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
http://wp13117963.server-he.de/blog/2007/01/15/ocl-support-in-enterprise-architect/comment-page-1/#comment-2035
我面临上述文章中提到的问题。即,当我对具有错误语法的属性创建约束时,Enterprise Architect 没有给出任何错误。
答案很简单:它伪造 OCL。EA 不对 OCL 本身进行语法检查。它绝不会执行 OCL,也不会进行任何约束检查。您只能将约束标记为 OCL:
而已。只需尝试输入一个无效的约束,EA 就会在没有任何警告的情况下吞下它。