package com.sample;
public enum VelocityEvent {
VEL_1(" Vel : 0.00-6.01 km/h : "),
VEL_2(" Vel : 18.00-20.99 km/h : "),
VEL_3(" Vel : 20.99-23.98 km/h : "),
VEL_4(" Vel : 23.98-1080.00 km/h : ");
private final String vel;
VelocityEvent(String velocity) {
vel = velocity;
}
public String getVel() {
return vel;
}
}
And here is my rule. (Just the LHS)
rule "Overlap"
when
$i1 : Instance ($e1 : event == VelocityEvent.VEL_1 && $name1 : name) from entry-point "Stream"
$i2 : Instance ($e2 : event && $name2 : name && $e2 == $e1 && $name2 != $name1
&& this overlaps $i1) from entry-point "Stream"
The part in red is where I am wanting to call the string value. If I just input the string it does work. But I am wanting these variables from the enum just for quick testing purposes and to avoid typos when copying and pasting the string every time.
Any help would be appreciated.
Thanks!
Stuart.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/eeeea666-33b3-4e9a-aef1-6d447e7a1347%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/zeXmhW9vIVA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAPYjU_%3DAkyHD8e68ZbXS%2BpvKUChVr84sBispS4OoizucsBkJMg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAHSCKe4SHQNWA35PO5i-K_4pnWkneEkp1bw5kF18dx02Y2eKEw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAPYjU_kiLjWwUbiE-a2Wrqwy%3DOZ7_X7Er_9vkiwMixx-qxwz1g%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/eeeea666-33b3-4e9a-aef1-6d447e7a1347%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/zeXmhW9vIVA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAPYjU_%3DAkyHD8e68ZbXS%2BpvKUChVr84sBispS4OoizucsBkJMg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.