Mark,
Is this an example of what you're talking about? -
<rule name="Recurse" salience="10">
<parameter identifier="f">
<class>Fibonacci</class>
</parameter>
<python:condition>f.getValue() == -1</python:condition>
<python:consequence>
from org.drools.examples.fibonacci import Fibonacci
print "recurse for %d" % f.getSequence()
drools.assertObject( Fibonacci( f.getSequence() - 1 ) )
</python:consequence>
</rule>
Thanks,
- Dmitry
________________________________
From: Mark Proctor [mailto:[EMAIL PROTECTED]
Sent: Fri 4/7/2006 12:07 PM
To: [email protected]
Subject: Re: [drools-user] Question on using Python to author DRL
Dmitry,
Just look over the python examples in 2.x - it shows you how to use
pojos inside a python consequence.
Mark
Dmitry Goldenberg wrote:
> Folks,
>
> I'm trying to understand how DRL authoring works. Anyone writing their rules
> in Python? If so, can I invoke methods on Java objects from inside of Python
> - how do I do that?
>
> Thanks,
> - Dmitry
>
>