diff --git a/drools-workbench-models/drools-workbench-models-guided-dtable/src/main/java/org/drools/workbench/models/guided/dtable/backend/util/GuidedDTBRDRLPersistence.java b/drools-workbench-models/drools-workbench-models-guided-dtable/src/main/java/org/drools/workbench/models/guided/dtable/backend/util/GuidedDTBRDRLPersistence.java index fbd2210618a..97ece7939b3 100644 --- a/drools-workbench-models/drools-workbench-models-guided-dtable/src/main/java/org/drools/workbench/models/guided/dtable/backend/util/GuidedDTBRDRLPersistence.java +++ b/drools-workbench-models/drools-workbench-models-guided-dtable/src/main/java/org/drools/workbench/models/guided/dtable/backend/util/GuidedDTBRDRLPersistence.java @@ -337,7 +337,7 @@ public void visitActionCallMethod(final ActionCallMethod action) { final ActionFieldFunction afvClone = new ActionFieldFunction(); afvClone.setMethod(((ActionFieldFunction) fieldValue).getMethod()); afvClone.setField(fieldValue.getField()); - afvClone.setNature(BaseSingleFieldConstraint.TYPE_LITERAL); + afvClone.setNature(fieldValue.getNature()); afvClone.setType(fieldValue.getType()); String value = fieldValue.getValue(); String templateKeyValue = rowDataProvider.getTemplateKeyValue(value); diff --git a/drools-workbench-models/drools-workbench-models-guided-dtable/src/test/java/org/drools/workbench/models/guided/dtable/backend/BRLRuleModelTest.java b/drools-workbench-models/drools-workbench-models-guided-dtable/src/test/java/org/drools/workbench/models/guided/dtable/backend/BRLRuleModelTest.java index 39eff3683f7..cea18bc0e25 100644 --- a/drools-workbench-models/drools-workbench-models-guided-dtable/src/test/java/org/drools/workbench/models/guided/dtable/backend/BRLRuleModelTest.java +++ b/drools-workbench-models/drools-workbench-models-guided-dtable/src/test/java/org/drools/workbench/models/guided/dtable/backend/BRLRuleModelTest.java @@ -1384,7 +1384,7 @@ public void testActionCallWithTemplateKeys() { "when\n" + " x : Context( )\n" + "then\n" + - " x.add( \"test\" );\n" + + " x.add( @{test} );\n" + "end\n"; assertEqualsIgnoreWhitespace(expected,