String Comparison in an Analytics Builder Block

What product/components do you use and which version/fix level?

Apama Analytics Builder, eu-latest.cumulocity.com, 10.13

What are trying to achieve? Please describe in detail.

Within a flow I want to apply a string comparison. Meaning I basically want to create something like:

If extracted property equals some string “abc” do something or proceed in the flow

I have not found any block with that I can achieve that if the comparison is on basis string. The Lookup block does not work that way, right? With floats or booleans I can do it via AND-Block or 2xThresholds.
Anything I’m missing here?

Find my incredible fancy picture attached :slight_smile:

You can use expression block

ex: Connect the output of extract property to an input port of the expression block and your expression will be something like input1 = “abc”

Hi Murat,

you can also use the attached block.
To use the block, you can either upload the .zip file via the administrator extension:
https://github.com/SoftwareAG/cumulocity-administration-anabuild
or unzip the monitor and upload the .mon file with the analytics builder block sdk:
https://github.com/SoftwareAG/apama-analytics-builder-block-sdk

Files:
comparestrings.zip (6.1 KB)
StringComparison_Monitor.zip (1.1 KB)

Cheers,
Felix

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.