<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<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: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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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:blue;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 85.05pt 70.85pt 85.05pt;}
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]-->
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Zaola,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I may not be right, but I can think of one solution :<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'> when<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OASISTSO10($e: EVENT)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
EVENT($g: GEO)
<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OASISTSO10(eval($e.GEO.size >0), )<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Then <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Assert something <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>When<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> $e.GEO[0].POSITION.LOCID matches
"40.*")<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Then<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>.....do something else <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Not sure if you can combine it all in one statement....<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Otaduy del
Paso, Zaloa<br>
<b>Sent:</b> Tuesday, October 07, 2008 8:53 PM<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> RE: RV: [rules-users] Checking an xml field<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Hi David,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Thanks for your helpful response. The problem was that the element
GEO can appear 0 or many times so what I needed to write was this <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>when <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OASISTSO10($e: EVENT)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OASISTSO10($e.<b>GEO[0].</b>POSITION.LOCID == “40005”)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
Then <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
Action<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>instead of<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
when <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OASISTSO10($e: EVENT)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OASISTSO10($e.GEO.POSITION.LOCID == “40005”)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
Then <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
Action<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Now I’m facing another problem. I need to check if the
element GEO exists before checking the POSITION, otherwise it throws an
outofbound exception. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>I tried with:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'> when<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OASISTSO10($e: EVENT)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
EVENT($g: GEO)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OASISTSO10($e.GEO[0].POSITION.LOCID matches "40.*")<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>But it doesn’t work. Any hints on this?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Thanks in advance,<o:p></o:p></span></p>
<div>
<p class=MsoNormal><b><span lang=ES-TRAD style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:black'>Zaloa Otaduy del Paso</span></b><span
lang=ES-TRAD style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:black'><o:p></o:p></span></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><span lang=ES>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span
lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b>En nombre de </b>David Sinclair<br>
<b>Enviado el:</b> martes, 07 de octubre de 2008 15:58<br>
<b>Para:</b> Rules Users List<br>
<b>Asunto:</b> Re: RV: [rules-users] Checking an xml field</span><span lang=ES><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=ES-TRAD><o:p> </o:p></span></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=ES-TRAD>Read the
manual man. Your rules don't make any sense<br>
<br>
<a href="http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/">http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/</a><o:p></o:p></span></p>
<div>
<p class=MsoNormal><span lang=ES-TRAD>On Tue, Oct 7, 2008 at 9:49 AM, Scott
Reed <<a href="mailto:sreed@avacoda.com">sreed@avacoda.com</a>> wrote:<o:p></o:p></span></p>
<div>
<p class=MsoNormal><span lang=ES-TRAD>What is the problem you are seeing? Do
the rules compile ok?<br>
<br>
Otaduy del Paso, Zaloa [10/6/2008 12:08 PM] wrote: <o:p></o:p></span></p>
<div>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Does anybody know the answer to my question? I'm not able to solve
this issue and don't find any clarifying tutorial either….</span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> </span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi,</span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I'm
new in drools and I'm having some problems accessing an xml field. I'm using
drools with jaxb to treat xml files that follow an specific xsd. I have the
following xml (this is just a piece of the xml):</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'><OASIS_TSO_1_0></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
<EVENT></span><span lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><EVENT_ID>EVENT_ID_03/10/2008
10:22:36</EVENT_ID></span><span lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><NODE_ID>00</NODE_ID></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><OTHER_EVENT_ID>Incidente
UME</OTHER_EVENT_ID></span><span lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><EVENT_TYPE>POL</EVENT_TYPE></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><SOURCE>HUMDED</SOURCE></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><SEVERITY>EXTREM</SEVERITY></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><CERTAINTY>88</CERTAINTY></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><DECL_DATIME>2008-10-03T10:20:47.0000000+02:00</DECL_DATIME></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><GEO></span><span lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><DESCRIPTION/></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><POSITION></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:70.8pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><LOC_ID>14021</LOC_ID></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:70.8pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><COORD></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:106.2pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><LAT>37.9811636567434</LAT></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:106.2pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><LON>-4.85417587343286</LON></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:106.2pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><HEIGHT>0</HEIGHT></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:70.8pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'></COORD></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'></POSITION></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=EN-GB style='font-size:10.0pt;
font-family:"Arial","sans-serif"'></GEO></span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=ES-TRAD style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
</EVENT></span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=ES-TRAD style='font-size:10.0pt;font-family:"Arial","sans-serif"'></OASIS_TSO_1_0></span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=ES-TRAD style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=ES-TRAD style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
already have a couple of rules working, but they are simple rules, like this
one: </span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>rule
"Rule1"</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
salience 10</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p style='text-indent:35.4pt'><span lang=ES-TRAD style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>when</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=ES-TRAD style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
OASISTSO10($e: EVENT)</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>OASISTSO10($e.SEVERITY
== "EXTREM") or OASISTSO10($e.SEVERITY == "SEVERE")</span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
then</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
action</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The
problem appears when I have to check the LOC_ID field and I don't know how to
access to it. I have tried several things but none of them work </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>1.</span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
when</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>OASISTSO10($e: EVENT)</span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
OASISTSO10($e.GEO.POSITION.LOCID == "40005")</span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
then</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>2.
</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
when</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>OASISTSO10($e: EVENT)</span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>OASISTSO10($g:
$e.GEO)</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
OASISTSO10($p: $g.POSITION)</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
</span><span lang=ES-TRAD style='font-size:10.0pt;font-family:"Arial","sans-serif"'>OASISTSO10($p.LOCID
== "40005")</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=ES-TRAD style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
Then</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=ES-TRAD style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
have also tried with ($e.GEO.POSITION.DESCRIPTION, just in case the
"_" character was the problem. But the same results… I have
searched also for examples with xmls but I haven't had luck. </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Any
help would be appreciated. Thanks in advance,</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><span
lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=EN-GB>Zaloa</span><span lang=ES-TRAD><o:p></o:p></span></p>
<p><span lang=ES-TRAD> <o:p></o:p></span></p>
</div>
<pre style='text-align:center'><span lang=ES-TRAD><o:p> </o:p></span></pre><pre
style='text-align:center'><span lang=ES-TRAD><o:p> </o:p></span></pre><pre
style='text-align:center'><span lang=ES-TRAD>
<hr size=4 width="90%" align=center>
</span></pre><pre style='text-align:center'><span lang=ES-TRAD><o:p> </o:p></span></pre><pre
style='text-align:center'><span lang=ES-TRAD><o:p> </o:p></span></pre><pre><span
lang=ES-TRAD><o:p> </o:p></span></pre><pre><span lang=ES-TRAD>_______________________________________________<o:p></o:p></span></pre><pre><span
lang=ES-TRAD>rules-users mailing list<o:p></o:p></span></pre><pre><span
lang=ES-TRAD><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><o:p></o:p></span></pre><pre><span
lang=ES-TRAD><a href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></span></pre></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=ES-TRAD><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=ES-TRAD><o:p> </o:p></span></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=ES-TRAD><o:p> </o:p></span></p>
<table class=MsoNormalTable border=0 cellpadding=0 style='background:white'>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'></td>
</tr>
</table>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<br><br><table bgcolor=white style="color:black"><tr><td><br>MASTEK LTD.<br>
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.<br>
In the US, we're called MAJESCOMASTEK<br>
<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
</td></tr></table></body>
</html>