You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

In cases the target and the source type do not match, or you want to perform some other transformation with the mapping, you can add operations to mapping relations.

If an input pin of an operation does not receive a value (either a literal or via a relation), the Compiler will not include the operation in the compiled service. Please note that you can assign a literal only to input pins, but not to target pins.

Drag out the needed operation from the service panel to the mapping operation area - the grey section in the middle of the mapping editor.

You can do this with any operation: Operations from your data model or the Base Types, as well as operations from imported libraries or connectors.

Once you have added the operation to the mapping diagram, you can connect the source and target properties to the operation pins.

If you want to create a new operation, you can click the corresponding operation icon and drag it to the grey operation area. You can create the following types of operations directly from the diagram toolbar:

The example on the left shows how to create a mapping operation.

The new operation is now displayed in the mapping diagram.

When you create a new operation by dragging it from the elements toolbar, it inherits by default the Static attribute of the mapping diagram it is dragged to. If necessary, you can change this attribute in the Attributes panel.

You can create parameters directly in the Mapping Editor using the two icons that appear above the operation when you hover over it.

The newly created operation is also displayed in the Implementation folder of the service panel. It resides within the same class as the mapping operation to which it was added.

  • No labels