Action must have a name
(Automatically adding template at the end of the page.)
(Replacing message template with parser tag)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
If you get this model error message, an action has been orphaned in your model. For example, a Class has been deleted, but, for some reason, the Class action belonging to it was left behind.
If you get this model error message, an action has been orphaned in your model. For example, a Class has been deleted, but, for some reason, the Class action belonging to it was left behind.



Latest revision as of 07:37, 17 June 2024

If you get this model error message, an action has been orphaned in your model. For example, a Class has been deleted, but, for some reason, the Class action belonging to it was left behind.

To remove actions without a name, open the OCL debugger for the model itself by right-clicking on a diagram background and selecting Extras -> Open model debugger...

  1. Make one (probably the only one) of the expressions there an Action (1)
  2. Paste the code below (2)
  3. Execute it using F5 or the button (3)
AbstractAction.allInstances->select(aa|aa.Name.isNullOrEmpty).delete

Close the dialog and save your model as usual.

Removing unnamed actions.png
This page was edited 95 days ago on 06/17/2024. What links here