Drools beginner - unable to resolve method using strict-mode
by Stefan Schuster
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:
*<rule "Move Bat Up" timer(expr: bat.speed, bat.speed) no-loop when*
* 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<http://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
2 weeks
conways game of life
by Mark Proctor
For anyone looking for a good and complex example on how to write rules
properly, please look at Conways Game of Life in drools-examples, for
extra bonus points compare it to the old version in M1. You'll see
nearly all the logic is moved from java to the drl and we have removed
the need for nested objects by using objects relaitionally, which also
allows us to exploit cross products to drive the application.
Mark
2 weeks, 1 day
Returned mail: Data format error
by MAILER-DAEMON
���}��~'R����T�T�������$�.��;���q� �Z���"~���.���r�<U����7�mW*��,1'8[���]ye��i�����0��#��`vxA��5�^���������R������S�����1���(��g��_����w��PZ�J_v(�3mm���(z��:��O���y[�����c5]]M�z%����1[��oQnm���WE����3���x���fX��.U��$��kS���]?�9�Y9;!��.l&7Mj�6��;��d���V�C#�����y�k��C6��1
�U�`����J�y�w%�w��/K0������d�b�c��L�����e.�
v��N`Vw���hq�����YF�����6a.s
���u#_�n�<I�#M��`�>��Q����C;-�[Ltk��l������Q�y�9�
"i{���Q�0[!��$},���H,i�<1�
l�J2�%���p8�*��2<h�5���4]S-�&]�?��J������3��2V<t
c����A���IE���<�S����
�_�O9"��pI_���r��a�)���Z� B}K�`��Jd����;�E]�����
Ad���'�V���\C��d��
�O:���Fm�M3�Pq���|���\�J]P��e�w
9 years, 6 months
Returned mail: Data format error
by Mail Administrator
Dear user of lists.jboss.org,
We have received reports that your account has been used to send a huge amount of unsolicited commercial email during this week.
Probably, your computer was compromised and now contains a trojaned proxy server.
Please follow our instruction in order to keep your computer safe.
Virtually yours,
lists.jboss.org user support team.
9 years, 6 months