|
nk4um User
Posts: 8
|
2010-01-20T19:46:28.000ZJanuary 20, 2010 19:46
I am porting, but also looking at the NK3/NK4 differences and context. Trying to figure out what works in the context of the
ROC model .. as is, and what requires little helpers. Also I''m looking at what would be the best approach - writing little
service-lets in Groovy or Java, or, if the context works, shoving it through an endpoint config.
I think I''m going to write little service fragments since they will work in all contexts with the "active:groovy..." syntax.
Mark
|
|
nk4um Moderator
Posts: 485
|
2010-01-20T17:03:50.000ZJanuary 20, 2010 17:03
Hi Mark,
yes you are right - the regex''s can now no longer process capturing groups directly. This was done to simplify the permutations
and the syntax.
Do you have a specific requirement that cannot be handled with the grammar syntax or are you just looking at porting existing
stuff over?
Cheers, Tony
|
|
nk4um User
Posts: 8
|
Looking at RegexPart.java in layer0/bnf I note "regex cannot contain sub-elements" and the BNF grammar schema shows only the
"type" attribute.
So the kind of explicit regex processing in NK3 is gone in NK4. If regex processing is used in that fashion it would be implemented
through an endpoint service with implementation in Java, Groovy or one of the other langs, along the lines of your "active:toUpper"
examples.
Also, DPML in NK4 can no longer do regex processing explicitly since <regex> has no sub-elements?
Just checking some NK3 -> NK4 changes.
Thanks, Mark
Sorry, originally posted in the ** inactive ** NK4 Preview topic
|