[rules-users] externalization of input constraints in a rule

Michael Anstis michael.anstis at gmail.com
Wed Oct 19 17:06:24 EDT 2011


Insert a SSN fact?

when
    SSN( $ssn : ssn )
    $person : Person( ssn == $ssn )
then
    ...

sent on the move

On 19 Oct 2011 20:56, "bharath87" <craze.stuff at gmail.com> wrote:

> Hi Guys,
>           I am new to Jboss Drools. I am writing rules for an application
> and here is where I need some help.
>
> Suppose I have a rule
>
>  rule "sampleRule"
>
> when
>
>      $person : Person ( ssn == "given" )
>
> then
>
>     display ($person)
>
> end
>
> I want to externalize the "given" and use a variable / user input instead.
>
> Thanks
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/externalization-of-input-constraints-in-a-rule-tp3435495p3435495.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> 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/20111019/be6cc530/attachment.html 


More information about the rules-users mailing list