Hello,

I tried with the latest 5.5.x branch code and could not replicate the issue you both report.

These are the steps I followed:-

1) Create a new Rule Template
2) Add a Fact Type
3) Add a Field constraint, with the value defined as a Template Key.
4) Change Template Key name
5) Click OK
6) Click "Load Template data"
7) Add a row
8) Enter a value
9) Click OK
10) View source

Everything worked as I'd expect it to.

Can you please advise if the steps you are using are different.

Can you please try with the 5.5.x latest code?

With kind regards,

Mike

On 14 March 2013 16:17, kurrent93 <kurrent93@gmail.com> wrote:
Hi

I'm tryiing to create a template in Guvnor.

When I try to add a template key, guvnor appends _na to the variable name.
And also says there are validation errors.

Is this something I am doing wrong?

the template looks like this:
1.      |       rule "TestTemplate_0"
2.      |           dialect "mvel"
3.      |           when
4.      |               Account( accountBalance > account_balance_na )
5.      |           then
6.      |               insertLogical( new TradeOrder() );
7.      |       end

Thanks
Anton



--
View this message in context: http://drools.46999.n3.nabble.com/validation-error-on-Template-tp4022828.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users