That's weird, and it looks like a bug in the build process to me: Java
literals are the same for byte, short and int. (CC-ing dev for
possible follow-up: You may be asked to furnish a minimal test case.)
As a workaround, use this in the Action column:
...; TaskTemplate1.setId( (short)$param );...
(Note 1: Using "short" is pretty pointless unless you need to store a
large number in an array. Note 2: Follow Java conventions for names
for class fields and variables.)
On 13/05/2014, crosbis2 <drpatrick.cosmo(a)gmail.com> wrote:
Not over the finish line yet,
I tried to build the package, after the rule validated correctly, but got
the below error relating to the setId method. Have i defined the variable
correctly i tried $1 and $param.
The view source code generated here looks the same as that of a previous
rule i generated in guvnor that works.
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com
rules-users mailing list