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..a3bef7bc250 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,13 +337,14 @@ 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.setType(fieldValue.getType()); String value = fieldValue.getValue(); String templateKeyValue = rowDataProvider.getTemplateKeyValue(value); if (Objects.equals("", templateKeyValue)) { + afvClone.setNature(fieldValue.getNature()); afvClone.setValue(value); } else { + afvClone.setNature(BaseSingleFieldConstraint.TYPE_LITERAL); afvClone.setValue(templateKeyValue); }