Using Connectors
In the Designer, you can connect to backend systems using adapters. To make this much easier, you can create a connector that provides the needed configurations for the adapter:
The Connector provides the data model, the Adapter performs the actual call to the outside system. The example above shows the connection to a REST service.
All connectors of the service that have been imported and configured reside below the Connectors folder in the Service Panel:
In the Designer, you can add connector operations to diagrams by simply dragging them from the service panel and dropping them on the canvas.
Configuring the Adapter Operation
Once a connector operation has been added to a diagram, it needs to be configured as a corresponding adapter. Select the newly added connector operation and switch to the Attributes panel. You can see the following information:
Attribute | Description | Allowed Values / Example |
---|---|---|
Name | The generated name of the operation within the diagram. | GET |
Symbol Type | Operations added to a diagram are UML call operations. | Call Operation |
All this is generated and cannot be changed. Click Add Stereotype to define the selected operation as to be a corresponding adapter:
Select the corresponding adapter, e.g. REST Adapter, from the list of available adapter stereotypes. Click Save:
The Attributes panel now shows the added adapter stereotype. Now you still need to configure the adapter. Expand the stereotype by clicking the arrow on the right:
An adapter is configured via the attributes of the selected stereotype. For the REST Adapter these are e.g. Alias and Digest Algorithm:
For many adapters, you need to configure an alias. Aliases specify the path to the related backend. You can
select an existing alias from a list
add a new alias with Plus
remove the alias (if one has been assigned) with Minus