[rules-users] Hello and my first question
Esteban Aliverti
esteban.aliverti at gmail.com
Mon Jan 14 05:48:20 EST 2013
You can take a look at 'Conditional named consequences' to see if that is
what you need:
http://docs.jboss.org/drools/release/5.5.0.Final/droolsjbpm-introduction-docs/html_single/#releaseNotes_5.5.0_Expert
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com
On Mon, Jan 14, 2013 at 11:45 AM, Bojan Janisch <
bojan.janisch at scai.fraunhofer.de> wrote:
> Hello everybody,
>
> this is my first post and also my first question to you.
> I've searched the net for quite some hours now, but don't get any
> information regarding optionally conditions.
>
> I'm using drools to annotate some textobjects and I'm stucking with the
> following rule:
>
> 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.
>
> So up to now I'm on this state:
>
> Rule "Anatomic Side"
>
> when
>
> $NE1 : NE(Type.contains("body"))
> $NE2 : NE(Type.contains("anatomy"))
>
> //So here starts the problem
> [$NE3 : NE(Type.contains("anatomic"))]
>
> then
> ...
>
> How can I set a condition as optionally or is there no such way?
>
> Thanks everyone to who reads this.
> Janisch
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130114/0980e02c/attachment.html
More information about the rules-users
mailing list