<br><font size=2 face="sans-serif">Hi </font>
<br>
<br><font size=2 face="sans-serif">In drools in deployment we get the below
link.</font>
<table>
<tr valign=top>
<td><a href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/xxxxxxx/LATEST.drl"><font size=2 color=blue face="Tahoma"><b><u>http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/xxxxxxx/LATEST.drl</u></b></font></a><font size=2 face="Tahoma">
</font>
<br><font size=2 face="Tahoma">We need to include this in properties file
in application wherein this URL is mentioned.</font>
<br><font size=2 face="Tahoma">How can one protect unauthorized access
to this URL as the whole set of rules can be viewed for this .</font></table>
<br>
<br><font size=2 face="sans-serif"><br>
Nilima <br>
____________________________________________<br>
Experience certainty. IT Services<br>
Business Solutions<br>
Outsourcing<br>
____________________________________________</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">rules-users-request@lists.jboss.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">rules-users@lists.jboss.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">02/17/2010 10:14 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">rules-users Digest, Vol 39, Issue 45</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">rules-users-bounces@lists.jboss.org</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Send rules-users mailing list submissions to<br>
rules-users@lists.jboss.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
or, via email, send a message with subject or body 'help' to<br>
rules-users-request@lists.jboss.org<br>
<br>
You can reach the person managing the list at<br>
rules-users-owner@lists.jboss.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of rules-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Negating a result (Wolfgang Laun)<br>
2. Re: Negating a result (djb)<br>
3. Re: Negating a result (Wolfgang Laun)<br>
4. Re: guvnor - dsl rule editor - using ":" in text box<br>
(Toni Rikkola)<br>
5. Re: getWorkingMemoryEntryPoint returns NULL (Wolfgang Laun)<br>
6. Insert new facts from RHS (Malinda Kaushalye)<br>
7. Re: Insert new facts from RHS (Mauricio Salatino)<br>
8. Re: Insert new facts from RHS (Enda J Diggins)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 17 Feb 2010 09:48:50 +0100<br>
From: Wolfgang Laun <wolfgang.laun@gmail.com><br>
Subject: Re: [rules-users] Negating a result<br>
To: Rules Users List <rules-users@lists.jboss.org><br>
Message-ID:<br>
<17de7ee81002170048j6898203br6a73e2e2962cbc79@mail.gmail.com><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Please be more specfic. If your field is called "foo", then<br>
should have a method in the class representing<br>
your fact, such as:<br>
<br>
boolean getFoo(){<br>
return <condition> ? ! (<expression>)
: <expression>;<br>
}<br>
<br>
Basically, <condition> could be a global parameter (public static
final)<br>
or a static or regular method call. <expression> could depend on
other<br>
attribute values, and so on.<br>
<br>
You can then write your CEs with a test such as<br>
foo == true<br>
<br>
But I think this is closely related with that other question you<br>
have posted.<br>
<br>
-W<br>
<br>
<br>
On Wed, Feb 17, 2010 at 9:32 AM, djb <dbrownell83@hotmail.com> wrote:<br>
<br>
><br>
> Hi Wolfgang,<br>
><br>
> Sure, I know de Morgan's laws, but I'm not asking how one can negate
a<br>
> condition...<br>
><br>
> I'm asking how one can either negate or not negate, based on a test...
and<br>
> whether I'm going to have to split my spreadsheet/rule-template into
2,<br>
> (i.e. 1 for "may not be" rules, 1 for "must be"
rules).<br>
><br>
> My spreadsheet has a field that in Java would be expressed as field
?<br>
> !finalResult : finalResult<br>
><br>
> But in DRL, it seems the lack of a ternary operator means I have to
split<br>
> my<br>
> rule-set, and I'm just checking if this is the case.<br>
><br>
> -Daniel<br>
><br>
> --<br>
> View this message in context:<br>
> </font></tt><a href="http://n3.nabble.com/Negating-a-result-tp212559p212656.html"><tt><font size=2>http://n3.nabble.com/Negating-a-result-tp212559p212656.html</font></tt></a><tt><font size=2><br>
> Sent from the Drools - User mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> rules-users mailing list<br>
> rules-users@lists.jboss.org<br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: </font></tt><a href="http://lists.jboss.org/pipermail/rules-users/attachments/20100217/18c19147/attachment-0001.html"><tt><font size=2>http://lists.jboss.org/pipermail/rules-users/attachments/20100217/18c19147/attachment-0001.html</font></tt></a><tt><font size=2>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 17 Feb 2010 02:02:08 -0800 (PST)<br>
From: djb <dbrownell83@hotmail.com><br>
Subject: Re: [rules-users] Negating a result<br>
To: rules-users@lists.jboss.org<br>
Message-ID: <1266400928420-212797.post@n3.nabble.com><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
Well the thing is, it's not just one condition - it's the combination of
all<br>
my rule's conditions. <br>
And my rules have about 7 conditions, none of which are mandatory. <br>
<br>
And that is actually the source of all my problems: that the conditions
are<br>
optional.<br>
<br>
If I set up a few logical relationships, there is nothing specific I am<br>
testing on, which gives a single expression I can test in a function. In<br>
procedural programming, I check each of the 7 conditions optionally, and<br>
then I apply my ternary operator to the final result. But here I
can't do<br>
that, because the condition is made up of all the little conditions that
may<br>
or may not be applicable.<br>
<br>
<br>
<br>
PS. <br>
Ok, so I see from the other thread that a rule template is meant to place<br>
whatever text you give it, like a text pre-processor. I'll see if
that is<br>
correct, thanks. I thought it might not be, because if you provide
a blank<br>
cell, it deletes your entire condition, instead of providing a ""
or a null,<br>
like you'd expect from a text pre-processor.<br>
<br>
-- <br>
View this message in context: </font></tt><a href="http://n3.nabble.com/Negating-a-result-tp212559p212797.html"><tt><font size=2>http://n3.nabble.com/Negating-a-result-tp212559p212797.html</font></tt></a><tt><font size=2><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 17 Feb 2010 11:33:14 +0100<br>
From: Wolfgang Laun <wolfgang.laun@gmail.com><br>
Subject: Re: [rules-users] Negating a result<br>
To: Rules Users List <rules-users@lists.jboss.org><br>
Message-ID:<br>
<17de7ee81002170233s62e0353fs50d439c532c75e82@mail.gmail.com><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
On Wed, Feb 17, 2010 at 11:02 AM, djb <dbrownell83@hotmail.com> wrote:<br>
<br>
><br>
> Ok, so I see from the other thread that a rule template is meant to
place<br>
> whatever text you give it, like a text pre-processor. I'll see
if that is<br>
> correct, thanks.<br>
<br>
<br>
I implemented this, so I hope I still know what I did. :-)<br>
<br>
<br>
> I thought it might not be, because if you provide a blank<br>
> cell, it deletes your entire condition, instead of providing a ""
or a<br>
> null,<br>
> like you'd expect from a text pre-processor.<br>
><br>
<br>
The idea of the interface for generating rules from object collection<br>
is to avoid the constraints of spreadsheet translation.<br>
<br>
-W<br>
<br>
> --<br>
> View this message in context:<br>
> </font></tt><a href="http://n3.nabble.com/Negating-a-result-tp212559p212797.html"><tt><font size=2>http://n3.nabble.com/Negating-a-result-tp212559p212797.html</font></tt></a><tt><font size=2><br>
> Sent from the Drools - User mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> rules-users mailing list<br>
> rules-users@lists.jboss.org<br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: </font></tt><a href="http://lists.jboss.org/pipermail/rules-users/attachments/20100217/ea6ec91f/attachment-0001.html"><tt><font size=2>http://lists.jboss.org/pipermail/rules-users/attachments/20100217/ea6ec91f/attachment-0001.html</font></tt></a><tt><font size=2>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 17 Feb 2010 12:33:10 +0200<br>
From: Toni Rikkola <trikkola@redhat.com><br>
Subject: Re: [rules-users] guvnor - dsl rule editor - using ":"
in<br>
text box<br>
To: Rules Users List <rules-users@lists.jboss.org><br>
Message-ID: <4B7BC5E6.6040704@redhat.com><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Tested it and this is a bug.<br>
I made a Jira for it so you can follow it.<br>
</font></tt><a href="https://jira.jboss.org/jira/browse/GUVNOR-505"><tt><font size=2>https://jira.jboss.org/jira/browse/GUVNOR-505</font></tt></a><tt><font size=2><br>
<br>
Toni<br>
<br>
John Walker wrote:<br>
> All,<br>
><br>
> I have a DSL sentence that looks like this:<br>
> [when]- and var9 matches {v9}=field9!=null, field9 matches "{v9}"<br>
><br>
> When using the Guvnor guided rule editor, I add the "- and var9
<br>
> matches {v9}" DSL sentence to the rule, giving me a WHEN condition
<br>
> like this:<br>
> - and var9 matches [text box]<br>
><br>
> I want to put a URL in the text box, but anytime I use a value <br>
> containing a colon":",<br>
> I get a popup box with error message "The value [some value with
a <br>
> colon] is not valid for this field"<br>
><br>
> Example:<br>
> DSL in rule, using guvnor guided editor: "- and var9 matches
<br>
> [</font></tt><a href=http://google.com/><tt><font size=2>http://google.com</font></tt></a><tt><font size=2>]"<br>
> Popup error message: "The value </font></tt><a href=http://google.com/><tt><font size=2>http://google.com</font></tt></a><tt><font size=2>
is not valid for <br>
> this field"<br>
><br>
> What needs to happen to allow a value with a colon? I did not
have <br>
> this problem with drools4 and JBRMS.<br>
><br>
> Thanks,<br>
> John<br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> rules-users@lists.jboss.org<br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
> <br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Wed, 17 Feb 2010 13:59:03 +0100<br>
From: Wolfgang Laun <wolfgang.laun@gmail.com><br>
Subject: Re: [rules-users] getWorkingMemoryEntryPoint returns NULL<br>
To: Rules Users List <rules-users@lists.jboss.org><br>
Message-ID:<br>
<17de7ee81002170459y5c64fe34p2922245f510decfc@mail.gmail.com><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Do you use "global" in your rules? This would be the "declaration"
of an<br>
entry point.<br>
<br>
Also, KnowledgeSessionConfiguration should be passed to the method call<br>
creating a session, which I don't see in your code.<br>
<br>
-W<br>
<br>
On Wed, Feb 17, 2010 at 2:16 AM, Malinda Kaushalye <kaushalye@yahoo.com>wrote:<br>
<br>
> Dear All,<br>
> It appears to be that the getWorkingMemoryEntryPoint() method returns
NULL<br>
> in my code given below.<br>
> Note that EventProcessingOption = STREAM and ClockType = "realtime"
if that<br>
> is of any importance.<br>
> Cheers,<br>
> Malinda<br>
><br>
> public class EventKnowledgeBase { private KnowledgeBase kbase
= null;<br>
> private StatefulKnowledgeSession ksession = null; private<br>
> WorkingMemoryEntryPoint globalStream = null;<br>
> public EventKnowledgeBase() throws Exception {<br>
> super();<br>
> kbase = readKnowledgeBase();<br>
> ksession = kbase.newStatefulKnowledgeSession();<br>
> KnowledgeBaseConfiguration config =<br>
> KnowledgeBaseFactory.newKnowledgeBaseConfiguration();<br>
> config.setOption( EventProcessingOption.STREAM );<br>
> KnowledgeSessionConfiguration kbSessionConfig =<br>
> KnowledgeBaseFactory.newKnowledgeSessionConfiguration();<br>
> kbSessionConfig.setOption( ClockTypeOption.get("realtime")
);<br>
> globalStream = ksession.getWorkingMemoryEntryPoint( "global"
);<br>
> if(null == globalStream){<br>
> System.out.println("WorkingMemoryEntryPoint is Null"); //YEAH..!
IT<br>
> RETURNS NULL<br>
> }<br>
> }<br>
><br>
><br>
> }<br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> rules-users@lists.jboss.org<br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: </font></tt><a href="http://lists.jboss.org/pipermail/rules-users/attachments/20100217/23fa4cdc/attachment-0001.html"><tt><font size=2>http://lists.jboss.org/pipermail/rules-users/attachments/20100217/23fa4cdc/attachment-0001.html</font></tt></a><tt><font size=2>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Wed, 17 Feb 2010 08:25:37 -0800 (PST)<br>
From: Malinda Kaushalye <kaushalye@yahoo.com><br>
Subject: [rules-users] Insert new facts from RHS<br>
To: rules-users@lists.jboss.org<br>
Message-ID: <817565.1542.qm@web56503.mail.re3.yahoo.com><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hi All,<br>
How do I insert new facts/events to the working memory from RHS?<br>
<br>
rule "myrule"<br>
when <br>
//Some condition<br>
then <br>
<br>
//Create and Insert some new events/facts to the working memory <br>
end<br>
<br>
Cheers,<br>
Malinda<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Wed, 17 Feb 2010 13:35:40 -0300<br>
From: Mauricio Salatino <salaboy@gmail.com><br>
Subject: Re: [rules-users] Insert new facts from RHS<br>
To: Rules Users List <rules-users@lists.jboss.org><br>
Message-ID:<br>
<efac615a1002170835q3ee9c0d8o8d1efada0ef1e310@mail.gmail.com><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
just calling<br>
insert(new Person());<br>
in the RHS<br>
<br>
On Wed, Feb 17, 2010 at 1:25 PM, Malinda Kaushalye <kaushalye@yahoo.com>wrote:<br>
<br>
> Hi All,<br>
> How do I insert new facts/events to the working memory from RHS?<br>
><br>
> rule "myrule"<br>
> when<br>
> //Some condition<br>
> then<br>
><br>
> //Create and Insert some new events/facts to the working memory<br>
> end<br>
><br>
> Cheers,<br>
> Malinda<br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> rules-users@lists.jboss.org<br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
><br>
<br>
<br>
<br>
-- <br>
- </font></tt><a href=http://salaboy.wordpress.com/><tt><font size=2>http://salaboy.wordpress.com</font></tt></a><tt><font size=2><br>
- </font></tt><a href=http://www.jbug.com.ar/><tt><font size=2>http://www.jbug.com.ar</font></tt></a><tt><font size=2><br>
- Salatino "Salaboy" Mauricio -<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: </font></tt><a href="http://lists.jboss.org/pipermail/rules-users/attachments/20100217/f380292f/attachment-0001.html"><tt><font size=2>http://lists.jboss.org/pipermail/rules-users/attachments/20100217/f380292f/attachment-0001.html</font></tt></a><tt><font size=2>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Wed, 17 Feb 2010 16:38:35 +0000<br>
From: Enda J Diggins <ejdiggins@gmail.com><br>
Subject: Re: [rules-users] Insert new facts from RHS<br>
To: Rules Users List <rules-users@lists.jboss.org><br>
Message-ID:<br>
<55587e551002170838u27e625efqa41ca3973564c91@mail.gmail.com><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Malinda,<br>
<br>
rule "myrule"<br>
when<br>
//some condition<br>
then<br>
insert(new Object());<br>
// or<br>
Variable var = new Variable();<br>
insert(var);<br>
end<br>
<br>
<br>
<br>
On Wed, Feb 17, 2010 at 4:25 PM, Malinda Kaushalye <kaushalye@yahoo.com>wrote:<br>
<br>
> Hi All,<br>
> How do I insert new facts/events to the working memory from RHS?<br>
><br>
> rule "myrule"<br>
> when<br>
> //Some condition<br>
> then<br>
><br>
> //Create and Insert some new events/facts to the working memory<br>
> end<br>
><br>
> Cheers,<br>
> Malinda<br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> rules-users@lists.jboss.org<br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
><br>
<br>
<br>
<br>
-- <br>
Enda J Diggins<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: </font></tt><a href="http://lists.jboss.org/pipermail/rules-users/attachments/20100217/f4adb2cf/attachment.html"><tt><font size=2>http://lists.jboss.org/pipermail/rules-users/attachments/20100217/f4adb2cf/attachment.html</font></tt></a><tt><font size=2>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
<br>
<br>
End of rules-users Digest, Vol 39, Issue 45<br>
*******************************************<br>
</font></tt>
<br>
<br><pre>=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
</pre>