How to: Define General Settings of Diagram Element Maps

You can use the DSL Details window together with the Domain-Specific Language Designer and DSL Explorer. For example, you can use the DSL Details window to set mappings and custom code settings not only between domain classes and shapes, but also between domain relationships and connectors. To set the general mapping details in the DSL Details window, you must first click a domain class, a domain relationship, or a map line in the Classes and Relationships swimlane in the Domain-Specific Language Designer. You can also click a connector shape or any one of the valid shapes that map to a domain class in the Diagram Elements swimlane.

For more information, see Connector (Domain-Specific Language Designer), Geometry Shape (Domain-Specific Language Designer), Image Shape (Domain-Specific Language Designer), Port Shape (Domain-Specific Language Designer), Swimlane (Domain-Specific Language Designer), and Compartment Shape (Domain-Specific Language Designer).

In addition to clicking these elements in the diagram, you can also click them in the DSL Explorer Domain Classes, Connectors, and Shapes nodes. For more information, see Defining Domain Classes in Domain-Specific Language Explorer, Defining Connectors in Domain-Specific Language Explorer, and Defining Shapes in Domain-Specific Language Explorer.

To define general map settings on a domain class

  1. In the Shape list, click the shape to which you want to map the domain class.

  2. (Optional.) To add custom code, select Has custom parent shape.

  3. In the Domain class list, click the domain class to which you want to map the shape.

  4. (Optional.) To add custom code, select Has custom parent element.

  5. (Optional.) To specify a path of an alternative parent element, overwrite the Parent element path. Click the text box to show a tree view of the new parent element.

To define general map settings on a domain relationship

  1. In the Connector list, click the connector to which you want to map the domain relationship.

  2. In the Domain relationship list, click the relationship to which you want to map the connector.

  3. (Optional.) To add custom code, select Has custom source.

  4. (Optional.) To add custom code, select Has custom target.

See Also

Concepts

Defining Element Mapping Details

Working with the Domain-Specific Language Designer

Domain Class and Named Domain Class (Domain-Specific Language Designer)

Embedding and Reference Domain Relationship (Domain-Specific Language Designer)

Domain-Specific Language Tools Glossary