Skip to content

The ultimate Mapper for building the bridge between any Message Broker and Cumulocity IoT in a zero-code approach!

License

Notifications You must be signed in to change notification settings

SoftwareAG/cumulocity-dynamic-mapper

Repository files navigation

Dynamic Mapping Service for Cumulocity

Overview

The Cumulocity Dynamic Mapper addresses the need to get any data provided by a message broker mapped to the Cumulocity IoT Domain model in a zero-code approach. It can connect to multiple message brokers likes MQTT, MQTT Service , Kafka and others, subscribes to specific topics and maps the data in a graphical editor to the domain model of Cumulocity.

Per default the followings connectors are supported

  • MQTT - any MQTT Broker
  • Cumulocity IoT MQTT Service - Cumulocity IoT built-in MQTT Broker
  • Kafka - Kafka Broker

Using the Cumulocity Dynamic Mapper you are able to connect to almost any message broker and map any payload on any topic dynamically to the Cumulocity IoT Domain Model in a graphical editor.

Here are the core features summarized:

  • Connect to multiple message broker of your choice at the same time.
  • Map any data to/from the Cumulocity IoT Domain Model in a graphical way.
  • Bidirectional mappings are supported - so you can forward data to Cumulocity or subscribe on Cumulocity data and forward it to the broker
  • Transform data with a comprehensive expression language supported by JSONata
  • Multiple payload formats are supported, starting with JSON, Protobuf, Binary, CSV.
  • Extend the mapper easily by using payload extensions or the provided connector interface
  • Full support of multi-tenancy - deploy it in your enterprise tenant and subscribe it to sub-tenants.


Installation

Please check the Installation Guide to find out how you can install the Dynamic Mapper.

User Guide

Please check the User Guide to find a comprehensive guidance how to use the Dynamic Mapper.

Architecture

Please check the Architecture overview if you are eager to understand how it is implemented.

API

Please check the REST API provided by the Dynamic Mapper.

Extensions

The Dynamic Mapper can be extended on multiple layers. Check out the Extensions Guide if you want to add customer mapper or connectors.

Limitations

Please check the current Limitations of the Dynamic Mapper.

Contribution

We are always looking for additional contribution.

Build & Deploy

If you want to make changes to the code or configuration check out this Build & Deploy guide

Tests & Sample Data

Load Test

In the resource section you find a test profil jmeter_test_01.jmx using the performance tool jmeter and an extension for MQTT: emqx/mqtt-jmeter. This was used to run simple loadtest.

Setup Sample mappings

A script to create sample mappings can be found here. You have to start it as follows:

#python3 resources/script/mapping/import_mappings_01.py -p <YOUR_PASSWORD> -U <YOUR_TENANT> -u <YOUR_USER> -f resources/script/mapping/sampleMapping/sampleMappings_02.json

The mappings with inputs and substitutions are explained in the sample document.


These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.

Contact us at TECHcommunity if you have any questions.