AMT Help Files

Managing Provided Mappings

The Mapping Pane



The Mapping pane shows information about the selected Operation in the Operations pane. In the upper half is shown to Form and Routine in that Form the Operation is linked. Also comments and documentation can be added there.

In the lower Routine parameters pane a list of parameters passed by the linked routine is shown, together with type information and the XML schema type used when SOAP information is sent (the Mapping of the Parameter).

There is also a parameter called Result in the list. This is not an actual routine parameter but the return value sent back by the linked routine (direction Out). There can only be one routine parameter with direction Out.



Parameter Mappings:

 

No parameters can be added or removed in the Mapping pane, since the parameters shown are the parameters as defined in the linked routine.

 

Mapping example

The provided routine for the example is shown below.

routine CelsiusToFahrenheit (cel : signed 8.1) : signed 8.1
begin_routine

    result := cel * 9 / 5 + 32.0

end_routine

When this routine is selected when adding an Operation as shown in the Managing Provided Operations help page the result variable and parameter are mapped as shown in the figure above. I.e. the result variable is always mapped to position 0 and the parameters are mapped in the order of occurrence in the function definition. So the parameter cel will be mapped to position 1.
 

Modifying Mappings of a Parameter



When a parameter is selected in the list the Object Inspector will open showing the Name, the Abstract Parameter Name and the XML Schema Type mappings the parameter. These can be altered but take great care when doing so, especially when changing the XML Schema Type of the parameter. The other mappings are derived from the linked routine and cannot be changed.




Selecting another Routine



It is possible to select another Routine for the Operation by clicking the 'Select routine' button in the upper half of the Mapping Pane. The dialog for selecting another Form and Routine will open exactly as when adding a new Operation (see Managing Provided Operations). Another Form and Routine can be chosen.

Be aware that when selecting another Form and Routine for an Operation this is exactly the same as first removing the Operation in the Operations pane and then adding a new Operation. I.e. The Name and Lion Name of the Operation will change to reflect the newly chosen routine as well as the Parameter names and mappings in the Mapping parameters list.