Apama Extension for Visual Studio Code to develop/test Cumulocity EPL App

Hi,

I took a look at the VS Code Extension for Apama, looked at the Knowledge Article and managed to:

  1. install the extension
  2. create a github project using the template streaming-analytics-sample-repo-template
  3. started the devcontainer

My questions are:

  1. Where do I specify to Cumulocity Tenant I want to connect?
  2. After changing the epl code, what are the steps to test the changes? Restart the devcontainer?
  3. Where do I see the correlator logs in the devcontainer?

Regards Christof

Hi Christof, it’s great to hear you’ve got the container setup.

The container comes with a checkout of the EPL Apps Tools (GitHub - Cumulocity-IoT/apama-eplapps-tools: Tools for uploading and testing EPL Apps for Cumulocity Streaming Analytics (Apama)), documented at EPL Apps Tools — EPL Apps Tools documentation so the next steps for testing and deploying would be follow those instructions - while benefitting from the EPL language support that the dev container gives you

Can I use the devcontainer to connect to a Cumulocity tenant as documented here?

Hi, just to confirm, you’re building an EPL app (not a custom microservice written in EPL)?

In that case I think what you need is the steps in Using PySys to test your EPL apps — EPL Apps Tools documentation to try out your EPL apps in a testcase. To configure the tenant details, see GitHub - Cumulocity-IoT/streaming-analytics-sample-repo-template: This repo provides a template for developing Cumulocity Streaming Analytics assets such as Blocks and EPL Apps, with a dev container for opening in Visual Studio Code. If you run it “locally” the correlator output will be in the test output dir. Even if you don’t bother to write any verify logic to start with, the approach of running it from a testcase is a good way to go.

You definintely wouldn’t restart the dev container - instead just run the pysys test within the container whenever you want to try things out.

You can also deploy the app to the cloud by running the commands shown in Using the eplapp.py command line tool — EPL Apps Tools documentation, in which case use the command line args mentioned in that topic to provide the tenant details.

Hope that helps, let us know if anything isn’t quite clear yet.