You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

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

Compare with Current View Page History

« Previous Version 17 Next »

Example projects are Blueriq models which demonstrate Blueriq functionality. They are included in the standard Blueriq library which is shipped with Blueriq. You can view, run and extend these projects by creating a new project and use an example project as a starting point.

Introduction

This example project demonstrates how Blueriq can be used for sending a REST request and mapping back the response. While this can be achieved either using a domain schema or an xsd import only the last of them is used in this particular application.

Prerequisites

 

In order to be able to successfully run this project the following need to be fulfilled:

  1. The machine on which the Runtime is running has a working internet connection;
  2. The aquima library is imported in Studio on the branch the project is on.

Observations

The whole functionality which exists in the application should be understandable for the business engineer. However the relation between the xsd and the domain model might be worth a short explanation (the xsd can be opened by opening the Home tab -> Schema set -> View schema set and then opening the 'StatusAnswer' element window).

 

 

As we don't use any domain schema the mapping is deduced from the xsd schema set. The schema set contains a form of the domain model to map the response in. Entities are set as complex types elements and they can further hold other elements which can be attributes (if the elements are simple) or relations to other entities (if the elements are also set as complex types). So for instance the complex type element AirportStatus (which is an entity) has a relation to the complex type element Status (which is again an entity) and moreover Status contains simple elements (attributes). It can also be observed that those xsd elements correspond to the real domain model.

 

 

 

  • No labels