<< Click to Display Table of Contents >> Self Delete Action |
![]() ![]() ![]() |
Show/Hide Hidden Text |
A Self-delete Action causes the parent entity to exit the model. Before deleting the parent entity, self-delete actions can also do any changes of stocks or attributes in the same way that command actions do. When an entity self-deletes, results and records up to that moment are not deleted, but the entity ceases to appear in any interactions, results or records from that moment forward.
To create a self-delete action, create a new action (by right-clicking the entity type on the model overview, or choosing "New Action" from the actions tab of the entity inspector), then select "Self-delete" as the type, as shown:
That's all that's required for a self-delete action, but if you wish, you can add commands (as described in Command Actions above) to change attribute values or stock values elsewhere, or to trigger other actions. For example, you might transfer a business' assets or a chameleon's mass to some other entity's stock as part of the self-delete action. Any commands you add will be carried out prior to the deletion of the entity.
Self-delete actions, by definition, delete their parent entities. Commands in self-delete actions can affect parent, invoker, or parent's and invoker's references, just as in command actions. |