Permalink
Browse files

PMML : fix mvel templates

  • Loading branch information...
1 parent 225c0ec commit 290fde4d7f25a5eb54a47713370554d85f7abc41 @sotty sotty committed May 13, 2013
@@ -19,7 +19,7 @@
declare trait @{context}Input
- @foreach{ fldName : fields.keySet }
+ @foreach{ fldName : fields.keySet() }
@{fldName} : @{mapDatatype(fields.get(fldName))}
@end{}
@@ -30,12 +30,12 @@
dialect "mvel"
when
@{context}Input(
- @foreach{ fldName : fields.keySet }
+ @foreach{ fldName : fields.keySet() }
_@{fldName} : @{fldName}
@end{','}
)
then
- @foreach{ fldName : fields.keySet }
+ @foreach{ fldName : fields.keySet() }
drools.getEntryPoint("in_@{compactUpperCase(fldName)}").insert(_@{fldName});
@end{}
end
@@ -26,7 +26,7 @@
rule "Tree Input Link @{context}"
when
- @foreach{ inputField : fields.keySet }
+ @foreach{ inputField : fields.keySet() }
@{inputField}( context == "@{context}", @{inputField} : value, m@{inputField} : missing, valid == true || ( valid == false && missing == true) )
@end{}
then
@@ -40,7 +40,7 @@ then
new java.util.HashMap(),
1.0,
0.0,
- @foreach{ inputField : fields.keySet } @{inputField}, m@{inputField} @end{','},
+ @foreach{ inputField : fields.keySet() } @{inputField}, m@{inputField} @end{','},
null
);
insertLogical( tok );
@@ -25,7 +25,7 @@
@declare{'treeInputDeclare'}
declare @{context}TreeToken extends TreeToken
- @foreach{ inputField : fields.keySet }
+ @foreach{ inputField : fields.keySet() }
v@{inputField} : @{mapDatatype(fields[inputField])}
m@{inputField} : boolean
@end{}
@@ -113,7 +113,7 @@ public void testReenableANN() {
Assert.assertEquals(24.0, queryIntegerField("OutSepLen", "Neuiris"));
- assertEquals( 61, getKSession().getObjects().size() );
+ assertEquals( 62, getKSession().getObjects().size() );
getKSession().dispose();
}

0 comments on commit 290fde4

Please sign in to comment.