Skip to content

Commit

Permalink
Release 26.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-apamabld-ghec committed Jan 28, 2025
1 parent 2978e2f commit e559799
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
Binary file modified block-api/framework/analyticsbuilder-framework.cdp
Binary file not shown.
Binary file modified block-api/framework/cumulocity-forward-events.cdp
Binary file not shown.
Binary file modified block-api/framework/cumulocity-inventoryLookup-events.cdp
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/005-Intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Analytic models run in the Apama correlator, and are managed by the Analytics Bu

Blocks can be tested using the PySys test framework that is included in an Apama installation. In order to develop, test and package blocks, you will need a full installation of Apama.

Blocks are implemented in Apama's Event Processing Language (EPL). This guide assumes a working knowledge of EPL. Refer to the [Apama documentation on developing EPL applications](https://cumulocity.com/apama/docs/10.15/developing-apama-applications-in-epl/getting-started-with-apama-epl/) and the [API Reference for EPL (ApamaDoc)](https://cumulocity.com/apama/docs/10.15/related/ApamaDoc/index.html). This guide also assumes a working knowledge of the Analytics Builder data model. Refer to the [Streaming Analytics guide](https://cumulocity.com/docs/2025/streaming-analytics/analytics-builder/#getting-started).
Blocks are implemented in Apama's Event Processing Language (EPL). This guide assumes a working knowledge of EPL. Refer to the [Apama documentation on developing EPL applications](https://cumulocity.com/apama/docs/latest/developing-apama-applications-in-epl/getting-started-with-apama-epl/) and the [API Reference for EPL (ApamaDoc)](https://cumulocity.com/apama/docs/latest/related/ApamaDoc/index.html). This guide also assumes a working knowledge of the Analytics Builder data model. Refer to the [Streaming Analytics guide](https://cumulocity.com/docs/streaming-analytics/analytics-builder/#getting-started).

The Analytics Builder block SDK has branches in a GitHub repository. You need to download the appropriate release of the block SDK based on the version of the Cumulocity IoT tenant you are using. Refer to the [Releases](https://github.com/Cumulocity-IoT/apama-analytics-builder-block-sdk/releases) page of the block SDK. The version of the block SDK should be compatible with the version of the Cumulocity IoT tenant.

Expand Down
2 changes: 1 addition & 1 deletion doc/035-Testing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Testing blocks

Blocks can be tested using the PySys testing framework. This is included in the Apama installation, along with extensions for using Apama with PySys. Built on top of the Apama extensions is a framework to test blocks. Refer to the [Apama Python API documentation](https://cumulocity.com/apama/docs/10.15/related/pydoc/index.html).
Blocks can be tested using the PySys testing framework. This is included in the Apama installation, along with extensions for using Apama with PySys. Built on top of the Apama extensions is a framework to test blocks. Refer to the [Apama Python API documentation](https://cumulocity.com/apama/docs/latest/related/pydoc/index.html).

The samples include tests. The `pysystestproject.xml` configuration relies on the environment variable `ANALYTICS_BUILDER_SDK` being set to the location of the block SDK using an absolute path. PySys tests should contain a `run.py` with a class that extends `apama.analyticsbuilder.basetest:AnalyticsBuilderBaseTest`. In the `execute` method of the test, start a correlator with the `self.startAnalyticsBuilderCorrelator()` method. This starts a correlator, injects the Analytics Builder framework into it, and returns a `CorrelatorHelper` object. Provide a `blockSourceDir` parameter with the path to the source of the blocks, typically within the project tree (use `self.project.SOURCE` from the supplied `pysysproject.xml` file). Then, create a model to test the block with the `self.createTestModel('<blockUnderTest>')` This results in a model being activated in the correlator with an input and output connected to every input and output of the block, and an identifier of the model is returned. The block can be exercised by sending events created by the `self.inputEvent` method, for a given block input identifier.

Expand Down
2 changes: 1 addition & 1 deletion scripts/blockMetadataGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ def run_metadata_generator(input, output, tmpDir, printMsg=False):
output += '.json'

scriptRunner = ScriptRunner(apama_home, java_home, output,
inputDir, tmpDir, '25.x.y')
inputDir, tmpDir, '26.x.y')
f = scriptRunner.generateBlockMetaData()
if printMsg:
if f[0]:
Expand Down

0 comments on commit e559799

Please sign in to comment.