Add "Last modified time" and "Last modified by" fields on diagram elements, updated automatically when changes occur in the diagram, and make these fields available in various views and APIs.
The fields are updated automatically when something changes in the diagram. The following changes are handled:
•Diagram element properties change (includes system attributes, custom attributes and relations to other elements).
•Changes to the diagram element instances (creating a new instance, removing an instance, modifying instance relations, like attached elements or connectors) will not cause updating the last modified fields.
•There is a visible change on a diagram level.Elements/instances/connectors are added on the diagram level.
•Elements/instances/connectors are removed from the diagram level.
•Graphical properties of an element are changed (size, position, connector route, color, etc.).
•Element property that exists on the element stencil is modified. Note that it is enough that the property exists on the stencil, it does not have to be visible on the diagram when the property is changed.
oFor example, element has status custom attribute and it has been added on the element stencil. The status attribute is not visible on current view settings. User changes the status property -> diagram's last modified fields are updated.
oIf the property that is on the stencil is a relation attribute, and it displays another attribute from the relation target element, the diagram's last modified fields are not updated when the target element's custom attribute value changes. The last modified fields are updated only if the relation attribute value changes (relation is changed to point to a different element).
oIf a last modified field is visible on the element stencil, it will not cause the parent diagram's last modified fields to be updated. For example, there are subprocesses in the model, with hierarchy A -> B -> C. Last modified time field is visible on the subprocess element's stencil. There is an activity X on diagram level C. User moves the activity X on the diagram -> diagram C's last modified fields are updated. Since the last modified time field is visible on diagram element C's stencil, it will cause a visible change on diagram level B. But since the last modified fields are an exception, the change will not cause diagram B's last modified fields to be updated.
•Changes to element types (element type graphical properties) do not cause the last modified fields to be updated even if they result in visible changes on diagram levels (for example when the background color is changed on the element type)