<div dir="ltr">You can take a look at 'Conditional named consequences' to see if that is what you need: <a href="http://docs.jboss.org/drools/release/5.5.0.Final/droolsjbpm-introduction-docs/html_single/#releaseNotes_5.5.0_Expert">http://docs.jboss.org/drools/release/5.5.0.Final/droolsjbpm-introduction-docs/html_single/#releaseNotes_5.5.0_Expert</a><div>
<br></div><div style>Best Regards,</div></div><div class="gmail_extra"><br clear="all"><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></div>
<br><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 11:45 AM, Bojan Janisch <span dir="ltr"><<a href="mailto:bojan.janisch@scai.fraunhofer.de" target="_blank">bojan.janisch@scai.fraunhofer.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everybody,<br>
<br>
this is my first post and also my first question to you.<br>
I've searched the net for quite some hours now, but don't get any information regarding optionally conditions.<br>
<br>
I'm using drools to annotate some textobjects and I'm stucking with the following rule:<br>
<br>
When there are two named entities, one body side and one anatomy in a text (they're defined earlier by a textannotating system, so I'm working on annotated objects) and there is a optionally anatomic side (it contains generally something like "lateral" oder "medial" and so on), then generate me a new annotation.<br>
<br>
So up to now I'm on this state:<br>
<br>
Rule "Anatomic Side"<br>
<br>
when<br>
<br>
$NE1 : NE(Type.contains("body"))<br>
$NE2 : NE(Type.contains("anatomy"))<br>
<br>
//So here starts the problem<br>
[$NE3 : NE(Type.contains("anatomic"))]<br>
<br>
then<br>
...<br>
<br>
How can I set a condition as optionally or is there no such way?<br>
<br>
Thanks everyone to who reads this.<br>
Janisch<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><br>
</blockquote></div><br></div>