<!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">
On 02/06/2010 11:15, Swindells, Thomas wrote:
<blockquote
cite="mid:DAC86F5F3B84F14088F0DB16092558CA07E8E0B303@UKMA1.UK.NDS.COM"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">I‘m
not trying to fire a particular rule, I’m trying to get the pattern
matching inside the knowledge session to actually run, eg the
equivalent of calling ksession.fireAllRules() but having the pipeline
doing it at the correct time.</span></p>
</div>
</blockquote>
Did you add the FireAllRulesCommand?<br>
<br>
Mark<br>
<blockquote
cite="mid:DAC86F5F3B84F14088F0DB16092558CA07E8E0B303@UKMA1.UK.NDS.COM"
type="cite">
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Thomas<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif";"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif";"
lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>
[<a class="moz-txt-link-freetext" href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</a>]
<b>On Behalf Of </b>rudolf michael<br>
<b>Sent:</b> 02 June 2010 10:39<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Using pipelines<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;">you can't
explicitly fire a rule...it is not like calling a method. rules are
fired when there is a pattern matches inside your KnowledgeSession.<o:p></o:p></p>
<div>
<p class="MsoNormal">2010/6/2 Swindells, Thomas <<a
moz-do-not-send="true" href="mailto:TSwindells@nds.com">TSwindells@nds.com</a>><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style=""><span style="color: rgb(31, 73, 125);">I’ve
still not managed to work this out,</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span style="color: rgb(31, 73, 125);">How
do I actually get my rules to fire when using a pipeline?</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal" style=""><span style="color: rgb(31, 73, 125);">Thanks,</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal" style=""><span style="color: rgb(31, 73, 125);">Thomas</span><o:p></o:p></p>
<p class="MsoNormal" style=""><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<div
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal" style=""><b><span style="font-size: 10pt;"
lang="EN-US">From:</span></b><span style="font-size: 10pt;"
lang="EN-US">
<a moz-do-not-send="true"
href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>
[mailto:<a moz-do-not-send="true"
href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>]
<b>On Behalf Of </b>Swindells, Thomas<br>
<b>Sent:</b> 30 May 2010 18:47<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> [rules-users] Using pipelines</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style=""> <o:p></o:p></p>
<p class="MsoNormal" style="">I’ve been trying to learn how to use
pipelines to execute some rules.<o:p></o:p></p>
<p class="MsoNormal" style=""> <o:p></o:p></p>
<p class="MsoNormal" style="">I’ve had a look at the
JaxbSimpleJmsMessengerTest as that seemed a good place to start and
copy the code from (using drools 5.0.1).<o:p></o:p></p>
<p class="MsoNormal" style="">However running the test doesn’t seem
to actually run any of the rules – I’ve tried adding println’s but they
don’t appear, nor do the globals appear to get populated.<o:p></o:p></p>
<p class="MsoNormal" style=""><br>
What am I missing?<o:p></o:p></p>
<p class="MsoNormal" style=""><br>
Thomas<o:p></o:p></p>
<p class="MsoNormal" style=""> <o:p></o:p></p>
<div class="MsoNormal" style="text-align: center;" align="center">
<hr width="100%" align="center" size="2"></div>
<p class="MsoNormal" style=""><span
style="font-size: 7.5pt; color: gray;"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If
you have received this message in error, please immediately notify the
<a moz-do-not-send="true" href="mailto:postmaster@nds.com"
target="_blank">postmaster@nds.com</a> and delete it from your system
as well as any copies. The content of e-mails as well as traffic data
may be monitored by NDS for employment and security purposes. To
protect the environment please do not print this e-mail unless
necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex,
TW18 4EX, United Kingdom. A company registered in England and Wales.
Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" style="text-align: center;" align="center">
<hr width="100%" align="center" size="2"></div>
<p class="MsoNormal"><span
style="font-size: 7.5pt; font-family: "Arial","sans-serif"; color: gray;"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If
you have received this message in error, please immediately notify the
<a moz-do-not-send="true" href="mailto:postmaster@nds.com"
target="_blank">postmaster@nds.com</a> and delete it from your system
as well as any copies. The content of e-mails as well as traffic data
may be monitored by NDS for employment and security purposes. To
protect the environment please do not print this e-mail unless
necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex,
TW18 4EX, United Kingdom. A company registered in England and Wales.
Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************</span><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><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><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
<br>
<hr>
<font color="Gray" face="Arial" size="1"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If
you have received this message in error, please immediately notify the
<a class="moz-txt-link-abbreviated" href="mailto:postmaster@nds.com">postmaster@nds.com</a> and delete it from your system as well as any
copies. The content of e-mails as well as traffic data may be monitored
by NDS for employment and security purposes. To protect the environment
please do not print this e-mail unless necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex,
TW18 4EX, United Kingdom. A company registered in England and Wales.
Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************<br>
</font>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>