<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you for your reply.<br>
<br>
Yes sure I have that. I took the rules directly from <a
href="http://javabeans.asia/articles/drools_5_case_study_2_complex_event_processing.html"><br>
http://javabeans.asia/articles/drools_5_case_study_2_complex_event_processing.html</a><br>
and they include this setting.<br>
<br>
<br>
As posted in my fist mail I needed to change 90d in following code
to 90m to get the tutorial to work.<br>
from accumulate(<br>
ClaimApprovedEvent(<br>
accountNumber == $account.number, <br>
$amount : amount<br>
) <br>
over window:time( 90d ) from <br>
entry-point ClaimStream, <br>
average($amount)<br>
)<br>
<br>
<br>
I can use 's', 'm' or 'h' only with 'd' I get an error marker in
eclipse:<br>
Description Resource Path Location Type<br>
Error: java.lang.NullPointerException account.drl
/SlidingWindowCEP/etc Unknown Drools Error<br>
<br>
<br>
btw.: The tutorial seems to use some discouraged Classes so I have
quite a few warnings <br>
about PackageBuilderConfiguration, MVELDialectConfiguration and
SessionPseudoClock <br>
however I have the same issues with this as written here:<br>
<a
href="http://drools.46999.n3.nabble.com/Fixing-the-quot-Discouraged-access-quot-Eclipse-warnings-makes-all-org-drools-import-unresolved-td1515491.html">http://drools.46999.n3.nabble.com/Fixing-the-quot-Discouraged-access-quot-Eclipse-warnings-makes-all-org-drools-import-unresolved-td1515491.html</a><br>
("Accessible" setting in eclipse makes all <span
class="Apple-style-span" style="border-collapse: separate; color:
rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;"><span class="Apple-style-span"
style="border-collapse: collapse; font-family:
Verdana,Geneva,Helvetica,Arial,sans-serif; font-size: 13px;">org.drools
imports unresolved)</span></span><br>
<br>
<br>
References for ppl interested in the discouraged warning:<br>
<a
href="http://drools.46999.n3.nabble.com/quot-Discouraged-access-quot-warnings-when-using-Drools-Eclipse-Workbench-td60302.html">http://drools.46999.n3.nabble.com/quot-Discouraged-access-quot-warnings-when-using-Drools-Eclipse-Workbench-td60302.html</a><br>
<a
href="http://drools.46999.n3.nabble.com/Problem-with-CommandFactory-newStartProcess-in-5-2-M1-td2691171.html">http://drools.46999.n3.nabble.com/Problem-with-CommandFactory-newStartProcess-in-5-2-M1-td2691171.html</a><br>
<br>
It seems to me I must have some basic setting wrong but I have yet
to figure out what it is,<br>
so hints are still very much appreciated.<br>
<br>
<br>
Best regards,<br>
Sebastian<br>
<br>
<br>
<br>
Am 11.04.2011 20:51, schrieb Mauricio Salatino:
<blockquote
cite="mid:BANLkTi=4R5n=fFrxYKvE0ddcuTeu7csD9w@mail.gmail.com"
type="cite">did you try setting the mvel dialect inside the rules?<br>
rule "my rule"<br>
dialect "mvel"<br>
when<br>
<br>
then<br>
<br>
end<br>
<br>
??<br>
<br>
<div class="gmail_quote">On Mon, Apr 11, 2011 at 12:17 PM,
s.Daniel <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sdaniel@wobster.de">sdaniel@wobster.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">Now I realy feel a bit silly. I banged my
head on this for hours and then<br>
just after I write you I get a step further. I changed mvl
mode and replaced<br>
line 78 in Tester.java with:<br>
PackageBuilderConfiguration conf = new
PackageBuilderConfiguration();<br>
((MVELDialectConfiguration)<br>
conf.getDialectConfiguration("mvel")).setStrict(false);<br>
((MVELDialectConfiguration)<br>
conf.getDialectConfiguration("mvel")).setLangLevel(5);<br>
KnowledgeBuilder builder =
KnowledgeBuilderFactory<br>
.newKnowledgeBuilder(conf);<br>
<br>
<br>
Now the markers are still being displayed but the code
compiles and runs. If<br>
someone would take the time to explain this to me I'd be very
thankful.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/Getting-a-Drools-Fusion-CEP-Example-to-work-tp2806952p2806987.html"
target="_blank">http://drools.46999.n3.nabble.com/Getting-a-Drools-Fusion-CEP-Example-to-work-tp2806952p2806987.html</a><br>
</font>
<div>
<div class="h5">Sent from the Drools: User forum mailing
list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
- CTO @ <a moz-do-not-send="true" href="http://www.plugtree.com">http://www.plugtree.com</a>
<br>
- MyJourney @ <a moz-do-not-send="true"
href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
- Co-Founder @ <a moz-do-not-send="true"
href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br>
<br>
- Salatino "Salaboy" Mauricio -<br>
</blockquote>
<br>
</body>
</html>