This article includes an example of a configurable graph config item definition that includes an explicit connection. With this type of connection, you have to define which of the two items is the "owner" and which is the DefObj (pointed to) to tell which direction the connection goes.
Example Data
Example Configuration
<MappingItemToItem> has three required attributes.
id identifies the mapping configuration. It is a string value that must be unique within a graph.
ownerCaption is the item that owns the part being added.
defObjCaption is the defObj of the part to be added. This handles the case where the two items are of the same item type.
<Part> defines the part to be connected. The partType attribute must provide the part type SID.
Example Result
When selecting two or more nodes to be connected, the configured connection options will be available for the selected nodes. This enables users to work graphically directly in the view.