This is a Software Development Kit (SDK) for producing blocks for the Apama Analytics Builder Block SDK.
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 main project.
This project is licensed under the Apache 2.0 license - see https://www.apache.org/licenses/LICENSE-2.0
This excludes the Analytics Framework 'CDP' file, which is provided in binary form only for the purpose of testing.
Use the 'main' branch for the current release or switch to the appropriate branch for Long-term support (LTS) / Maintenance releases.
This script requires an installation of Python 3.7+ and runs on either Windows or Linux. To build extensions or configure Software AG Designer, a full installation of the latest Apama is required. If you do not already have access, then you can download the Apama Community Edition from Apama Downloads (shortly after the official Software AG release date). If you choose to install Apama, you can skip the manual installation of Python, as it is shipped with Apama.
The apama-builder Docker image from Docker Hub can also be used for building and managing extensions.
Note that Analytics Builder requires your Cumulocity IoT tenant to be subscribed to an 'apama-ctrl' microservice. The 'apama-ctrl-starter' microservice offers only restricted functionality and does not support custom blocks.
The guide to writing blocks is available in the doc directory and there is ApamaDoc reference available.
From an Apama command prompt:
Run sample tests (Windows):
set ANALYTICS_BUILDER_SDK=%cd%
cd samples/tests
pysys run
Run sample tests (Unix):
export ANALYTICS_BUILDER_SDK=`pwd`
cd samples/tests
pysys run
analytics_builder build extension --input samples/blocks --cumulocity_url <URL> --username <tenantID>/<username> --password <password> --name sample-blocks --restart
Note: After running the above command, the apama-ctrl microservice will be restarted.
See Change Log for changes.
See Migrating input and output blocks to the version 2 API for details on migrating custom input and output blocks to the version 2 API.