Hi all,
Can someone please help?
Thanks.
-Original Message-
From: Elran Dvir
Sent: Wednesday, November 06, 2013 8:51 AM
To: 'Rules Users List'
Subject: RE: [rules-users] how can I modify a batch of objects
Hi Wolfgang,
I am sorry to nag, but did you have a chance to look at my recent
What about FactType.getFactClass()? Should avoid all issues.
Admittedly, in order to get the FactType, you'll have to start with a
package name and the declared type name as strings, but these ought to
be identlical to what you have in your DRL. But the Class is the
Class.
But I think OP's problem
http://blog.athico.com/2013/11/space-invaders-in-8-minutes-with-drools.html
—
Following in the same fashion of Pong and Wumpus World, I've written a
simplified Space Invaders game. I've uploaded it to youtube, make sure you
watch it in high quality and full screen, to avoid blur text:
http://www.
Hi,
I have written a function in Guvnor. Now I am creating a test scenario where
I want to call this function. As test scenario doesnt have "Free from DRL"
option, is there an another way to call the function ?
Thanks,
Asim
--
View this message in context:
http://drools.46999.n3.nabble.com/Ac
That’s what I meant … if a Java fact is being used, then using .getClass() is a
better approach than strings.
I wrote the method to support DRL declared types originally. If I create a
declared type, then I know that the simple name will match the name of my
declared type once Drools has conver
I just see that I forgot to add "equals":
return object.getClass().equals( factClass );
@Stephen: I don't understand "if a Java fact is being used". Sure, the
object filter's accept takes an object, so object.getClass() is the
typical way to go. But why the detour into strings?
StudentBean
Good point Wolfgang … it’s a bit of my code that I provided. I tend to use
SimpleName to make it easy to find declared types as well as Java classes. But
if a Java fact is being used, then getClass() is a much better idea.
On 10 Nov 2013, at 07:27, Wolfgang Laun wrote:
> Digging a bit into Ja