Re: [rules-users] Drools beginner - unable to resolve method using strict-mode

2013-04-10 Thread Wolfgang Laun
I've seen Eclipse staying out of sync with actual DRL errors. Try
editing something harmless in move.drl, to force an update.

-W

On 10/04/2013, Stefan Schuster  wrote:
> Hi,
>
> I'm new to drools, and I made my first steps using the very nice
> video-tutorial "Build Pong in 13 minutes using JBoss Drools" found here:
> http://www.youtube.com/watch?v=Omj4PR3v-nI
>
> Eclipse shows building errors, but Pong start anyway. What does this error
> mean?
>
> in move.drl there is following rule:
> * *ui : PongUI(  ready == true )*
> *( KeyPressed( keyText == "A" ) and bat : Bat( playerId ==
> PlayerId.PlayerOne, y > pconf.padding + pconf.sideLineWidth )*
> *  or*
> *  KeyPressed( keyText == "K" ) and bat : Bat( playerId ==
> PlayerId.PlayerTwo, y > pconf.padding + pconf.sideLineWidth ) ) *
> *td : TableDirty( )  *
> *then*
> *tableG = ui.getTablePanel().getTableG();*
> *tableG.setColor( Color.BLACK ); // background*
> *tableG.fillRect( bat.x, bat.y, bat.width, bat.height );*
> * *
> *modify( bat ) { y = bat.y - 2 };*
> *tableG.setColor( Color.WHITE ); // background*
> *tableG.fillRect( bat.x, bat.y, bat.width, bat.height );  *
> *modify( td ) { dirty = true };*
> *end*
>
> the error message is:
> [Error: unable to resolve method using strict-mode:
> org.drools.spi.KnowledgeHelper.td
> ()]
> [Near : {... @Modify with( td ) { dirty = true }; }]
>
>
> in another File (ui.drl) TableDirty is defined:
>
> *declare TableDirty*
> * @propertyReactive*
> *dirty : boolean*
> *end*
>
>
>
> Any ideas what this error message means? And why can I start pong despite
> this error?
>
> Thanks a lot for helping me
>
> Stefan
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools beginner - unable to resolve method using strict-mode

2013-04-10 Thread Stefan Schuster
Thanks a lot for this hint, but unfortunately this wasn't the problem.

Any other ideas?

Thanks in advance
Stefan
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools beginner - unable to resolve method using strict-mode

2013-04-10 Thread Vincent LEGENDRE
I am not that drools eclipse plugin is able to see DRL types if they are 
defined in a separate DRL file. 
But if your app works well, it is only that. 
If the type is really missing, you should encounter errors at runtime (when 
feeding the knowledge base) 

- Mail original -

De: "Stefan Schuster"  
À: "Rules Users List"  
Envoyé: Mercredi 10 Avril 2013 16:44:50 
Objet: Re: [rules-users] Drools beginner - unable to resolve method using 
strict-mode 


Thanks a lot for this hint, but unfortunately this wasn't the problem. 


Any other ideas? 


Thanks in advance 
Stefan 




___ 
rules-users mailing list 
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools beginner - unable to resolve method using strict-mode

2013-04-10 Thread Davide Sottara
That rule style requires

dialect "mvel"

to be declared either at the rule level or globally in the DRL file,
do you have that?

Davide

On 04/10/2013 08:41 AM, Vincent LEGENDRE wrote:
> I am not that drools eclipse plugin is able to see DRL types if they
> are defined in a separate DRL file.
> But if your app works well, it is only that.
> If the type is really missing, you should encounter errors at runtime
> (when feeding the knowledge base)
>
> 
> *De: *"Stefan Schuster" 
> *À: *"Rules Users List" 
> *Envoyé: *Mercredi 10 Avril 2013 16:44:50
> *Objet: *Re: [rules-users] Drools beginner - unable to resolve method
> usingstrict-mode
>
> Thanks a lot for this hint, but unfortunately this wasn't the problem.
>
> Any other ideas?
>
> Thanks in advance 
> Stefan
>
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools beginner - unable to resolve method using strict-mode

2013-04-11 Thread Stefan Schuster
yes, the dialect is declared as mvel. The pong game is also part of the
standard-examples that come with drools-experts. It's the same if I import
this example unmodified. But as it runs, it seams to be only an issue with
the eclipse plugin. Annoying, but no serious problem.

thanks to all for your help!


2013/4/10 Davide Sottara 

>  That rule style requires
>
> dialect "mvel"
>
> to be declared either at the rule level or globally in the DRL file,
> do you have that?
>
> Davide
>
>
> On 04/10/2013 08:41 AM, Vincent LEGENDRE wrote:
>
> I am not that drools eclipse plugin is able to see DRL types if they are
> defined in a separate DRL file.
> But if your app works well, it is only that.
> If the type is really missing, you should encounter errors at runtime
> (when feeding the knowledge base)
>
> --
> *De: *"Stefan Schuster" 
> 
> *À: *"Rules Users List" 
> 
> *Envoyé: *Mercredi 10 Avril 2013 16:44:50
> *Objet: *Re: [rules-users] Drools beginner - unable to resolve method
> usingstrict-mode
>
> Thanks a lot for this hint, but unfortunately this wasn't the problem.
>
>  Any other ideas?
>
>  Thanks in advance
> Stefan
>
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> rules-users mailing 
> listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools beginner - unable to resolve method using strict-mode

2013-04-11 Thread Vincent LEGENDRE
Define the type as a java class and the error should go away . 

- Mail original -

De: "Stefan Schuster"  
À: "Rules Users List"  
Envoyé: Jeudi 11 Avril 2013 10:38:01 
Objet: Re: [rules-users] Drools beginner - unable to resolve method using 
strict-mode 


yes, the dialect is declared as mvel. The pong game is also part of the 
standard-examples that come with drools-experts. It's the same if I import this 
example unmodified. But as it runs, it seams to be only an issue with the 
eclipse plugin. Annoying, but no serious problem. 


thanks to all for your help! 



2013/4/10 Davide Sottara < dso...@gmail.com > 




That rule style requires 

dialect "mvel" 

to be declared either at the rule level or globally in the DRL file, 
do you have that? 

Davide 



On 04/10/2013 08:41 AM, Vincent LEGENDRE wrote: 





I am not that drools eclipse plugin is able to see DRL types if they are 
defined in a separate DRL file. 
But if your app works well, it is only that. 
If the type is really missing, you should encounter errors at runtime (when 
feeding the knowledge base) 



De: "Stefan Schuster"  
À: "Rules Users List"  
Envoyé: Mercredi 10 Avril 2013 16:44:50 
Objet: Re: [rules-users] Drools beginner - unable to resolve method using 
strict-mode 


Thanks a lot for this hint, but unfortunately this wasn't the problem. 


Any other ideas? 


Thanks in advance 
Stefan 




___ 
rules-users mailing list 
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 


___
rules-users mailing list rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 



___ 
rules-users mailing list 
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 




___ 
rules-users mailing list 
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users