I think these questions will appear again as it's a bit confusing
subject (Java rules in XML, XML rules in XML, Java rules in Java, ...)
So here's a new wiki page where I compiled what was written here. Feel
free to edit:
(Sande - I hope it doesn't duplicate some such page - ?)
HTH,
Ondra
On 2.3.2015 17:04, Lincoln Baxter, III wrote:
Samuel is writing a hands-on-lab :) even better.
You are all correct! :D Great replies.
On Mon, Mar 2, 2015 at 10:51 AM, Brad Davis <bdavis(a)redhat.com
<mailto:bdavis@redhat.com>> wrote:
The XML rules basically provide a short cut for creating rules for
Java and XML files.
* If you need to create a new report, you will need to write in Java.
* If you need to extend functionality beyond what the XML rules
provide, you will need to write in Java.
* But, if you are trying to just highlight a specific area of a
Java code or XML files and provide hints, fall back to leveraging
the XML rules.
Thanks! Look forward to seeing your rules Samuel!
Brad Davis
Senior Manager, Red Hat Consulting
Email: bdavis(a)redhat.com <mailto:bdavis@redhat.com> | c:
980.226.7865 <tel:980.226.7865> |
http://www.redhat.com
----- Original Message -----
From: "Jess Sightler" <jsightle(a)redhat.com
<mailto:jsightle@redhat.com>>
To: windup-dev(a)lists.jboss.org <mailto:windup-dev@lists.jboss.org>
Sent: Monday, March 2, 2015 9:43:48 AM
Subject: Re: [windup-dev] Choose between xml, groovy or java based
rules
I don't expect that the XML rules will ever be as powerful as the
Java rules. I think that making them that powerful would actually
make them more complicated to use than the Java rules.
Having said that, if there are common cases that are requiring
Java, we would like to know that. We would like as many rules as
possible to be easy to write in the XML format.
On 03/02/2015 07:57 AM, Sande Gilda wrote:
Ondra, isn't the intent to try to continually improve the XML
rules so they have more and more of the functionality of the Java
rules?
On 03/02/2015 07:37 AM, Ondrej Zizka wrote:
Hi,
I'll try to sum up, someone may add or correct.
Groovy: That was an experiment, currently not finished AFAIK.
XML:
Pros: Should be easy and shorter, no need for recompilation,
picked up automatically from a known paths.
Cons: Only supports a subset of conditions and operations
(simplier ones); does not allow direct custom graph data manipulation.
Java:
Pros: Allows pretty much anything; easier debugging; IDE code
completion for Windup API;
Cons: Needs to be an full Forge addon (if not added to Windup core
codebase); needs more code (some of it boilerplate);
A bit more complex - author needs to know more of Windup internals.
HTH,
Ondra
On 1.3.2015 12:39, Samuel Tauil wrote:
Hi,
Why are the advantages and disadvantages of creating a XML or
Groovy based rule script as opposed to creating a Java Rule Add-on ?
When would one approach be recommended over another ?
Samuel Tauil
Senior Solution Architect
Global Partner Enablement
http://www.redhat.com/partners/partner-enablement
http://youtu.be/EdsvGcfIoJs
Ext. 8426191
Phone +55 11 3524-6191 <tel:%2B55%2011%203524-6191>
_______________________________________________
windup-dev mailing list windup-dev(a)lists.jboss.org
<mailto:windup-dev@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/windup-dev
_______________________________________________
windup-dev mailing list windup-dev(a)lists.jboss.org
<mailto:windup-dev@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/windup-dev
_______________________________________________
windup-dev mailing list windup-dev(a)lists.jboss.org
<mailto:windup-dev@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/windup-dev
--
Calendar Free/Busy:
https://www.google.com/calendar/embed?src=jsightle%40redhat.com&ctz=A...
_______________________________________________
windup-dev mailing list
windup-dev(a)lists.jboss.org <mailto:windup-dev@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/windup-dev
_______________________________________________
windup-dev mailing list
windup-dev(a)lists.jboss.org <mailto:windup-dev@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/windup-dev
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
_______________________________________________
windup-dev mailing list
windup-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/windup-dev