This is an automated email from the ASF dual-hosted git repository.
gitgabrio pushed a commit to branch 7.67.x-blue
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git
The following commit(s) were added to refs/heads/7.67.x-blue by this push:
new 689b0b7a1e Fix ActionFieldValue clone (#5991)
689b0b7a1e is described below
commit 689b0b7a1e02c784d28fc9b95f2198bf636043c9
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Fri Jun 14 10:27:21 2024 +0200
Fix ActionFieldValue clone (#5991)
* [private-bamoe-issues#2091] Fix ActionFieldValue clone
* Fix template test
* [private-bamoe-issues#2091] Fix ActionFieldValue clone
---------
Co-authored-by: Gabriele-Cardosi <[email protected]>
Co-authored-by: rikkola <[email protected]>
---
.../models/guided/dtable/backend/util/GuidedDTBRDRLPersistence.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 fbd2210618..a3bef7bc25 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 class GuidedDTBRDRLPersistence extends
RuleModelDRLPersistenceImpl {
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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]