From c36ecebb297a1ccf93b8aac9db283d8d96a0431c Mon Sep 17 00:00:00 2001 From: Willem Otten Date: Wed, 4 Dec 2024 16:31:42 +0100 Subject: [PATCH] Add SQL Expression on attribute mapping level --- ...de_BaseStructuralFeatureMapping_XmlExport_Template.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/decomposed/extensions/MDDE_LDM/Profile/BaseStructuralFeatureMapping/Criteria/mdde_Criterion_ParentIsMDDEMapping/Templates/mdde_BaseStructuralFeatureMapping_XmlExport_Template.xml b/decomposed/extensions/MDDE_LDM/Profile/BaseStructuralFeatureMapping/Criteria/mdde_Criterion_ParentIsMDDEMapping/Templates/mdde_BaseStructuralFeatureMapping_XmlExport_Template.xml index 1af832c..4109c9d 100644 --- a/decomposed/extensions/MDDE_LDM/Profile/BaseStructuralFeatureMapping/Criteria/mdde_Criterion_ParentIsMDDEMapping/Templates/mdde_BaseStructuralFeatureMapping_XmlExport_Template.xml +++ b/decomposed/extensions/MDDE_LDM/Profile/BaseStructuralFeatureMapping/Criteria/mdde_Criterion_ParentIsMDDEMapping/Templates/mdde_BaseStructuralFeatureMapping_XmlExport_Template.xml @@ -31,6 +31,14 @@ .if (%Comment%) <Comment>%.X:Comment%</Comment> .endif(\n) +.comment only display the sql expression if stereotype is a mdde_sourceobject of type business rule +.if (%.D:mdde_SourceObject%) && (%SourceFeature%) + .if (%SourceFeature.Entity.Stereotype% == "mdde_WindowBusinessRule") + .if (%.D:mdde_SourceObject.mdde_SqlExpression?%) + <SourceObjectSqlExpression>"%.XD:mdde_SourceObject.mdde_SqlExpression%"</SourceObjectSqlExpression> + .endif(\n) + .endif +.endif .comment Add the content of the export extension template .if (%Model.mdde_Export_Extension_Attached%) .if(%.D:mddex_BaseStructuralFeatureMapping_Export_Content%)