is there any plans to include a regex ability in the rules.
i am looking at ServiceMcaCondition.java and think I understand it. So pass a regex expression as a value and have it evaluated |
BJ,
Where exactly would you put this? Are you proposing a new method or an extension to an existing one? - Andrew On Sat, 2006-07-01 at 08:07 -0700, BJ Freeman wrote: > is there any plans to include a regex ability in the rules. > i am looking at ServiceMcaCondition.java and think I understand it. > So pass a regex expression as a value and have it evaluated -- Kind Regards Andrew Sykes <[hidden email]> Sykes Development Ltd http://www.sykesdevelopment.com |
let me start from the basics then maybe a solution can be arrived at.
i have expressions like subject starts with " " and Contains " " and Contains " " so I thought that using a regex expression I could accomplish the same thing. the only change to the ServiceMcaCondition.java would be seeing the regex: in front of the expression so it knows to evaluate the value based on the expression. This may not be the way to accomplish my goal, I am open to suggestions. Andrew Sykes sent the following on 7/1/2006 8:14 AM: > BJ, > > Where exactly would you put this? > > Are you proposing a new method or an extension to an existing one? > > - Andrew > > On Sat, 2006-07-01 at 08:07 -0700, BJ Freeman wrote: >> is there any plans to include a regex ability in the rules. >> i am looking at ServiceMcaCondition.java and think I understand it. >> So pass a regex expression as a value and have it evaluated |
BJ,
It looks like this is already there... <mca mail-rule-name="testRule1"> <condition-field field-name="to" operator="matches" value=".*@ofbiz\.org"/> <condition-field field-name="subject" operator="matches" value=".*Test.*"/> <action service="testMca" mode="sync"/> </mca> am I missing your point? - Andrew On Sat, 2006-07-01 at 08:20 -0700, BJ Freeman wrote: > let me start from the basics then maybe a solution can be arrived at. > i have expressions like > subject starts with " " and Contains " " and Contains " " > so I thought that using a regex expression I could accomplish the same > thing. > the only change to the ServiceMcaCondition.java > would be seeing the regex: in front of the expression so it knows to > evaluate the value based on the expression. > > This may not be the way to accomplish my goal, I am open to suggestions. > > Andrew Sykes sent the following on 7/1/2006 8:14 AM: > > BJ, > > > > Where exactly would you put this? > > > > Are you proposing a new method or an extension to an existing one? > > > > - Andrew > > > > On Sat, 2006-07-01 at 08:07 -0700, BJ Freeman wrote: > >> is there any plans to include a regex ability in the rules. > >> i am looking at ServiceMcaCondition.java and think I understand it. > >> So pass a regex expression as a value and have it evaluated Kind Regards Andrew Sykes <[hidden email]> Sykes Development Ltd http://www.sykesdevelopment.com |
Guess I don't understand the code.. LOL.
that is what I was trying to determine. will test some more. Andrew Sykes sent the following on 7/1/2006 8:39 AM: > BJ, > > It looks like this is already there... > > <mca mail-rule-name="testRule1"> > <condition-field field-name="to" operator="matches" > value=".*@ofbiz\.org"/> > <condition-field field-name="subject" operator="matches" > value=".*Test.*"/> > <action service="testMca" mode="sync"/> > </mca> > > am I missing your point? > > - Andrew > > On Sat, 2006-07-01 at 08:20 -0700, BJ Freeman wrote: >> let me start from the basics then maybe a solution can be arrived at. >> i have expressions like >> subject starts with " " and Contains " " and Contains " " >> so I thought that using a regex expression I could accomplish the same >> thing. >> the only change to the ServiceMcaCondition.java >> would be seeing the regex: in front of the expression so it knows to >> evaluate the value based on the expression. >> >> This may not be the way to accomplish my goal, I am open to suggestions. >> >> Andrew Sykes sent the following on 7/1/2006 8:14 AM: >>> BJ, >>> >>> Where exactly would you put this? >>> >>> Are you proposing a new method or an extension to an existing one? >>> >>> - Andrew >>> >>> On Sat, 2006-07-01 at 08:07 -0700, BJ Freeman wrote: >>>> is there any plans to include a regex ability in the rules. >>>> i am looking at ServiceMcaCondition.java and think I understand it. >>>> So pass a regex expression as a value and have it evaluated |
Free forum by Nabble | Edit this page |