did you make sure to restart Apama? This is not done by default but there is a --restart parameter:
This file has been truncated.
# Building a block into an extension
Once a block is written in EPL, it can be packaged into an "extension". Extensions are **.zip** files that can be used to add blocks to the Analytics Builder runtime. Analytics Builder is deployed within Cumulocity IoT, and extensions are stored in the inventory. The extensions are only read when the Apama-ctrl microservice inside Cumulocity IoT is started, so the service must be restarted to make use of a new block. Restarting the microservice will lose state in any running models or custom EPL applications running in that tenant. This SDK provides a command line utility called `analytics_builder` which is available in the root directory of the SDK. This can be used to build an extension or list an extension or manage an extension in a Cumulocity IoT installation. You must navigate out of the model editor to the model manager and back to the editor to expose the new blocks after uploading an extension.
Most of the `analytics_builder` commands use a `--input` argument which specifies the path to a directory. All files except **.log**, **.classpath**, **.dependencies**, **.project**, **.deploy**, **.launch**, **.out**, and **.o** found under that directory will be included, and message files matching **\*-messages.json** or named **messages.json** will be used for the runtime messages.
The `analytics_builder` script is run from an Apama command prompt (on Windows, run **Apama Command Prompt** from the Start Menu group of your Apama installation; on Linux, source the `apama_env` script). **Note:** You must place the script in a directory that does not have any spaces in its full path.
The `analytics_builder` script takes a two-word command, followed by any arguments required by the command. Available commands are:
* `build extension --output <path to zip file>`
Build an extension, generating a local **.zip** file. For example:
analytics_builder build extension --input samples/blocks --output sample-blocks.zip
* `build extension --cumulocity_url <url> --username <user> --password <password> --name sample-blocks`
If you did restart, can you check the apama-ctrl microservice log for any errors after startup?
There was a mistake in the $blockCategory as there is difference in the Category Shown on the Analytic Builder page and actual mapping as
The following table lists the allowed values for
@$blockCategory and the category names that are shown in the model editor’s palette:
Name in the palette