Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Service Description

The service is based around on the functionality of managing the inventory of a car/motorcycle dealership. It contain the following queries.

  • addProductQuery: This query adds a new product to the cataloguecatalog.
  • updateProductQuantityQuery: This query updates the availablity availability of a certain product. This is linked with an input event trigger, which monitors if the stock of this product is critically low. If so, if fires an event notifying the subscribers that this product's stock needs to be updated.
  • getProductByCodeQuery: This query retrieves product information, given the product code. The company gives special attention to people querying the database for motocycles. So when a query is made where the product type is a motorcyle, an output trigger associated with this query is triggers and a message is sent to the respective subscribers , here which is our email address in this case, to our email address.

Sample Run

Sample run of the service using the TryIt tool is shown below.

...