# EPL syntax assistance

**URL:** <https://community.cumulocity.com/t/epl-syntax-assistance/11082>\
**Category:** Forum\
**Tags:** Streaming-Analytics-Apama, analytics\
**Created:** [March 12, 2025, 7:18pm UTC](https://community.cumulocity.com/t/epl-syntax-assistance/11082 "2025-03-12T19:18:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdm](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/bdm/32/11919_2.png) [@bdm](https://community.cumulocity.com/u/bdm)\
**Post date:** [March 12, 2025, 7:18pm UTC](https://community.cumulocity.com/t/epl-syntax-assistance/11082/1 "2025-03-12T19:18:26Z")

</div>

Hi,

we have this tested EPL code that we want to modify: instead of matching an alarm event with type = {string} we would like to match the alarm event if the type contains (or includes) a particular string:

## existing EPL code

on all Alarm(type=ALARM\_IN\_TYPE, status=“ACTIVE”) as a1 → Alarm(type=ALARM\_OUT\_TYPE, status=“ACTIVE”) as a2 {

---

<div class="post-metadata">

**Author:** ![Sudha\_Jallu](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/sudha_jallu/32/31978_2.png) [@Sudha\_Jallu](https://community.cumulocity.com/u/Sudha_Jallu)\
**Post date:** [March 13, 2025, 7:06am UTC](https://community.cumulocity.com/t/epl-syntax-assistance/11082/2 "2025-03-13T07:06:43Z")

</div>

> [@bdm](#):
>
> we have this tested EPL code that we want to modify: instead of matching an alarm event with type = {string} we would like to match the alarm event if the type contains (or includes) a particular string:

Hi,

Unfortuenately we can’t filter the events on the type that contains a string or starts with a string.  
Instead of it, we can simply do as follows ,

```auto
on all Alarm(status=“ACTIVE”) as a1 {
          if a1.type.contains("subString") {....}
}

```

Thank,  
Sudha Jallu
