2.10How to debug an activity diagram
2.10How to debug an activity diagram
2.10.1Ghost elements
To find a ghost element (element present in the containment tree of a diagram but not used by the diagram) you have to name the elements used by the diagram. In the example below (see Figure 1), we can find the initial node not used because it is not named.

Figure 1 : Search of ghost element
2.10.2 Ghost relations
To find a ghost relation (relation present in the containment tree of a diagram but not used by the diagram) you have select "Specification->Relations" on an element (right click). Each element must have zero to one incoming and zero to one outgoing relations. In the example below (see Figure 2), we can find that the call operation “serviceContactInit” has two Outgoing relations. Then you can go on "Related Elements->Display path" on the elements in order until you find the wrong relation.

Figure 2 : Search of ghost relation