Apama Cumulocity integration
Tags: iot, cumulocity, integration
Published: 2019-10-29 12:59:12

---
title: Apama Cumulocity integration
published: true
date: 2019-10-14 10:58:00 UTC
tags: #iot, #cumulocity, #integration
canonical_url: http://techcommunity.softwareag.com/techniques-blog/-/blogs/apama-cumulocity-integration
---

# More enhancements to using Apama with the Cumulocity IoT platform

**The 10.5 release, in October 2019, brings Analytics Builder to cloud users, adds EPL samples to our on-line EPL editor, and makes it easier to invoke other microservices from Apama.**

## Cumulocity integration enhancements

Apama continues to evolve integration points with the Cumulocity IoT platform.  In the 10.5 release:

- Our inline tool for creating EPL apps has had a quality of life improvement in the form of a selection of helpful samples. These samples are available when editing and can form the basis of a new application or be the source of useful snippets of code. This will help shorten the length of time needed to create a simple application.

![](http://techcommunity.softwareag.com/documents/10157/10893595/apama001.png/e4b2b8a8-82b3-47ec-862b-fc7de6a0728a?t=1571128865625)

- Analytics Builder - which was covered in depth in a previous [TECHniques article](http://techcommunity.softwareag.com/techniques-blog/-/blogs/apama-analytics-builder) - now supports:
  - Use in Cumulocity core (i.e. cloud) environments.
  - Hierarchical view of groups and devices in the palette. This helps for use cases where devices are organized with child devices and allows easy reference of which devices are within a group.
![](http://techcommunity.softwareag.com/documents/10157/10893595/apama002.png/c15a665d-5bb9-4057-a494-e6ba724a8b58?t=1571128869793)
  - Blocks to send and receive events from Cumulocity Alarms, Operations and Managed Objects. This gives more flexibility in how models interact with devices or other services in Cumulocity.
  - Block Software Development Kit (SDK) to allow customers to build their own blocks in EPL. This allows customers to extend Analytics Builder to use proprietary calculations or integration to other services as needed. Blocks can be automatically tested with **pysys** test framework tests.
- Using the Event Process Language (EPL)’s interface to Cumulocity, it is now easier to send a REST request to another microservice, either within an EPL app or a custom microservice using Apama. Credentials will be automatically picked up from the microservice environment, for example:

```
action responseCallback (Response resp) { 
    string objectId := resp.payload.getString("id");
    ... 
} 
... 
CumulocityRequestInterface cumulocity := CumulocityRequestInterface.connectToCumulocity(); 
Request req := cumulocity.createRequest("GET","/service/otherService/data", any()); 
req.setQueryParameter("type","object"); 
req.execute(responseCallback);
```

## Summary

Apama continues to develop integration with Cumulocity.  Stay tuned for more updates in the future.

To learn more, refer to the Cumulocity [Analytics Guide](https://cumulocity.com/guides/apama/overview-analytics/) for using the EPL editor, the [Analytics Builder documentation](https://documentation.softwareag.com/onlinehelp/Rohan/Analytics_Builder/pab10-5/apama-pab-webhelp/index.html) and the [Block SDK](https://github.com/SoftwareAG/apama-analytics-builder-block-sdk).