[rules-users] Call of a function in the definition of a rule template

Wolfgang Laun wolfgang.laun at gmail.com
Mon Feb 13 04:04:22 EST 2012


2012/2/13 freelance developpement <developpement.freelance at gmail.com>

> I have not understood your answer, what I meant was ,for example i had a
> program function
>

Do you mean a public static method in some Java Class?

You should be able to define an "import function", even in Guvnor.

-W

"utiliser une fonction dans une rule" n'est pas "appeler une fonction pour
d´efiner une rule"





> that returns me the max and I want to make it available to one who will
> create the business rule .It goes like that when access to the creation of
> a new rule template and not technical (he knows not to programming) it
> will use this function already defined in the "create new Function".
>
> please do you know how to make this call?
>
> thanks in advance
>
>
> 2012/2/13 Wolfgang Laun <wolfgang.laun at gmail.com>
>
>> It is not so easy to create rules programmatically (if that's what you
>> mean).
>>
>> You could use the experimental (unstable) "fluent" API (see 2.2.2.6. Rule
>> API in the "Drools Introduction and General User Guide"), but this is a
>> rather inconvenient way of accumulating strings to create a package. I'd
>> rather create a String and feed the DRL compiler with it, but YMMV.
>>
>> -W
>>
>>
>>
>> 2012/2/13 freelance developpement <developpement.freelance at gmail.com>
>>
>>> Hi every one,
>>>
>>>  I defined a function in Guvnor and I want to call it to define a rule
>>> template. But I do not know how.
>>>
>>> Have you any ideas?
>>> Thank you in advance
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> 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/20120213/90504b80/attachment.html 


More information about the rules-users mailing list