[rules-users] Guvnor 5.5 being WIERD

Michael Anstis michael.anstis at gmail.com
Thu Jan 17 05:06:57 EST 2013


In your example:-

1.      |       rule "Rule One"
2.      |           dialect "mvel"
3.      |           when
4.      |               Class(campaign == 1939506 )
5.      |               Class1( CUR_FM_EOC_IN == "Y" )
6.      |               Class1( GRP_TRANSPARENT_IN == "N" )
7.      |               Class1( LEGAL_LANG_CD != "ES" )
8.      |               Class( BUSUNIT_01_NO == "39" )
9.      |           then
10.     |               Dummy fact1 = new Dummy();
11.     |               fact1.setAsset_41369( "Access 1" );
12.     |               insert( fact1 );
13.     |       end

Where is the binding of a LHS fact? In particular, given your requirement,
a bound Dummy? I would have expected:-

when
    $d : Dummy( ... )
    ....
then
    $d.setWhatEver( ... );
    update( $d );
end

The RHS constructs only become available if you have at least one binding
in the LHS. You have zero.

With kind regards,

Mike

On 17 January 2013 10:01, starfish15 <pooja.ghosh at accenture.com> wrote:

> Hi manstis,
>
> Are you sure there exists an option in the Web Editor that set the rules to
> an existing fact. Because i was unable to find that. And the example given
> to you is the source of a Business Rule tried in GUVNOR. But they both stop
> at the same thing.
>
> I am not sure what cud be the problem here.
>
> Regards,
> Starfish
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Guvnor-5-5-being-WIERD-tp4021569p4021599.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/20130117/0729ee46/attachment.html 


More information about the rules-users mailing list