diff --git a/block-api/framework/analyticsbuilder-framework.cdp b/block-api/framework/analyticsbuilder-framework.cdp index 75fc543..ade006a 100644 Binary files a/block-api/framework/analyticsbuilder-framework.cdp and b/block-api/framework/analyticsbuilder-framework.cdp differ diff --git a/block-api/framework/cumulocity-forward-events.cdp b/block-api/framework/cumulocity-forward-events.cdp index 788a01f..c8aefa0 100644 Binary files a/block-api/framework/cumulocity-forward-events.cdp and b/block-api/framework/cumulocity-forward-events.cdp differ diff --git a/block-api/framework/cumulocity-inventoryLookup-events.cdp b/block-api/framework/cumulocity-inventoryLookup-events.cdp index 3646250..dab164b 100644 Binary files a/block-api/framework/cumulocity-inventoryLookup-events.cdp and b/block-api/framework/cumulocity-inventoryLookup-events.cdp differ diff --git a/doc/005-Intro.md b/doc/005-Intro.md index f29a064..5ffc89b 100644 --- a/doc/005-Intro.md +++ b/doc/005-Intro.md @@ -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. diff --git a/doc/035-Testing.md b/doc/035-Testing.md index 89e2fdb..d8308fc 100644 --- a/doc/035-Testing.md +++ b/doc/035-Testing.md @@ -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('')` 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. diff --git a/scripts/blockMetadataGenerator.py b/scripts/blockMetadataGenerator.py index b555f56..6c17f6e 100755 --- a/scripts/blockMetadataGenerator.py +++ b/scripts/blockMetadataGenerator.py @@ -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]: