Task: Recommend Data Mappings
Aim: Recommend data mappings between data objects involved in a service composition by selecting an input data object of some service.
- Composition Portlet has to be in place (see installation and configuration guide)
- Mediation Portlet has to be in place (see installation and configuration guide)
- Edit an existing composition model by using the Composition Portlet.
A user selects the involved data objects to be mediated. Then the Mediation Portlet will use a matching algorithm to discover/recommend potential mappings between source and target data objects. These potential mappings are confirmed and refined by the user to generate executable mappings.
The modeler needs to go through a few manual steps before he can access the model-based mediation. He clicks on the “Add additional plugins dynamically” button on the top menu (left hand side of the next figure). In the pop-up that appears (right hand side of the next figure), the “ORYX.Plugins.BPMN2_0Serialization” is ticked. This leads to a new button with the drop-down menu shown in the next figure.
The ENVISION framework assumes that a data transformation is needed to produce the input data object of each part service within a service composition. First, the user selects the input data object for which a mediation shall be specified. This is done by right-clicking on an input data object and selecting “build mediation” from the drop-down menu of the top second right-most button. This will open the Mediation Portlet (figure below). The Mediation Portlet automatically performs a matching process between the source(s) and targets. The input data object is the target, while the data object(s) (that are output data objects of other service) with outgoing data flow to the input data object are the source(s).
The user must choose among the possible mappings by clicking on the relevant thumb-up buttons. In the current version, it is assumed that each target element has a one-to-one correspondence to a source element. When all relevant mappings are selected, the user will push the mapping complete button on the top right. This triggers a serialization of the mapping which is returned to the Composition Portlet and stored as a property of the input data object. (The current version does not store the serialized mapping, but displays the corresponding XSLT for use in BPEL)
- Go to envision.envip.eu
- Login as email@example.com
- Passsword = 47UjY5WX
- Choose the Composition tab.
- Click OK on three to four database messages
- Login to Oryx with user id = oryx.myid.net, password = envision.
- Open the model “WaterAlarm” by double-clicking on it.
- Follow the procedure from the first screenshot.
- Select the data object “droughtIn”
- Go to the button menu in Oryx and choose the button second most to the right. Choose “Build mediation”
- Click OK on a message
- Choose the thumb-up button on the first row.
- Press the button “Mapping Complete”.
- The resulting XSLT is viewed.