[rules-users] using primitive datatypes?

Fabian Weisensee fabian at weisensee.net
Thu Nov 15 11:02:22 EST 2007


Hello everyone

just one quick question:

I tried to invoke a rule from inside of jBPM. This works now, but I have 
a major problem. The rule is quite simple and should only check if an 
integer from the jBPM process is greater than a limit. I insert this 
integer into the workingmemory, but as I understand it, drools only 
works with objects.
I tried "Integer(intValue >= limit)" on the LHS but that only let my 
process hang at the drools-decision.

Is this possible at all? Or do I have to wrap this integer into an object?

-- Fabian

PS: the whole rule looks like this:

rule "Rechnung pruefen"
	when
		r1 :Integer(intValue >= 500)	
		ci : ContextInstance (id >= 0)
	then
		ci.setVariable("mussPruefen", true);
		System.out.println("Rechnung muss geprueft werden");		
end



More information about the rules-users mailing list