Skip to main content

Hi,


I have setup an Event Orchestration, and I am sending an email to its integration email address. I route the event to the proper services based on conditions. Then in the service I have one rule which always triggers, and pulls information out of the message body and stores them in the event custom_details. I then have a second rule to the right (nested) which has a condition based on the enriched data. However, the rule never fires. Does the rules to the right have access to the event custom_data set by the previous rule?

Hello @calvin dallimore, I brought this subject to the product team’s attention and here’s their suggestion:



When using the “Event Fields” feature (aka DFEE) to pull information out of an event and store it in another field (like custom details) the resulting value is always a string. So that event.custom_details.cert_expiry_days < 25 condition will evaluate like '3' < 25 which will fail because PCL doesn’t allow a < comparison between a string and a number.


Currently we do not offer any direct way of converting strings into number. )In the short term, users can often come up with a hacky regular expression that in practices behaves like the < 25 comparison. The condition would be something like this:


event.custom_details.cert_expiry_days matches regex '^(1?e0-9]|2(0-4])$'



That clears up the issue, thank you! I started to get that feeling but wasn’t certain. I will work around it 🙂


Reply