diff --git a/decomposed/extensions/MDDE_LDM/ExtendedModelDefinition/a_CheckGlobalScript.xml b/decomposed/extensions/MDDE_LDM/ExtendedModelDefinition/a_CheckGlobalScript.xml index f0fc4c1..9f52abb 100644 --- a/decomposed/extensions/MDDE_LDM/ExtendedModelDefinition/a_CheckGlobalScript.xml +++ b/decomposed/extensions/MDDE_LDM/ExtendedModelDefinition/a_CheckGlobalScript.xml @@ -213,7 +213,7 @@ Function SelectSourceObjectAttribute(objSourceObject) Exit Function End If - ' Get a reference the real source object + ' Get a reference to the real source object Dim objRealSourceObject : Set objRealSourceObject = GetRealObject(objSourceObject.GetExtendedAttribute("mdde_JoinedObject")) ' If the selected source object is a scalar business rule, we automatically set the output attribute here without showing the object picker (if there is only one output attribute). @@ -223,13 +223,13 @@ Function SelectSourceObjectAttribute(objSourceObject) For Each objAttribute in objRealSourceObject.Attributes ' If the current attribute is an output attribute, select this one (for now, if it turns output there where multiple outputs, the variable will be unset later and object picker will be shown). If objAttribute.HasStereotype("mdde_OutputAttribute") Then - Set SelectMappingSourceAttribute = objAttribute + Set SelectSourceObjectAttribute = objAttribute intOutputAttributeCount = intOutputAttributeCount + 1 End If Next ' Of the output attribute wasn't found, show an error and stop the method. - If SelectMappingSourceAttribute Is Nothing Then + If intOutputAttributeCount = 0 Then MsgBox _ "The selected scalar business rule doesn't have an output attribute!" & vbCrLf & vbCrLf _ & "Please make sure there is only one attribute in the scalar business rule with the stereotype 'Output attribute (MDDE)'." _ @@ -238,7 +238,7 @@ Function SelectSourceObjectAttribute(objSourceObject) Exit Function ' If there are multiple output attributes, show the object picker. ElseIf intOutputAttributeCount > 1 Then - Set SelectMappingSourceAttribute = Nothing + Set SelectSourceObjectAttribute = Nothing End If End If diff --git a/decomposed/extensions/MDDE_LDM/Profile/BaseClassifierMapping/Criteria/mdde_Criterion_IsMDDEMapping/Criteria/mdde_Criterion_ClassifierIsPivotBusinessRule/Templates/mdde_Mapping_Stereotyped_XmlExport_Template.xml b/decomposed/extensions/MDDE_LDM/Profile/BaseClassifierMapping/Criteria/mdde_Criterion_IsMDDEMapping/Criteria/mdde_Criterion_ClassifierIsPivotBusinessRule/Templates/mdde_Mapping_Stereotyped_XmlExport_Template.xml index 7816b03..ce66ef3 100644 --- a/decomposed/extensions/MDDE_LDM/Profile/BaseClassifierMapping/Criteria/mdde_Criterion_IsMDDEMapping/Criteria/mdde_Criterion_ClassifierIsPivotBusinessRule/Templates/mdde_Mapping_Stereotyped_XmlExport_Template.xml +++ b/decomposed/extensions/MDDE_LDM/Profile/BaseClassifierMapping/Criteria/mdde_Criterion_IsMDDEMapping/Criteria/mdde_Criterion_ClassifierIsPivotBusinessRule/Templates/mdde_Mapping_Stereotyped_XmlExport_Template.xml @@ -3,10 +3,10 @@ mdde_Mapping_Stereotyped_XmlExport_Template <PivotConfig .if (%mdde_PivotHeaderAttributeSelector%) - PivotHeaderAttribute="%mdde_PivotAggregatedAttribute_SourceObject.Code%.%mdde_PivotHeaderAttribute.Code%" + PivotHeaderAttribute="&quot;%mdde_PivotAggregatedAttribute_SourceObject.Code%&quot;.&quot;%mdde_PivotHeaderAttribute.Code%&quot;" .endif() .if (%mdde_PivotAggregatedAttributeSelector%) - PivotAggregatedAttribute="%mdde_PivotAggregatedAttribute_SourceObject.Code%.%mdde_PivotAggregatedAttribute.Code%" + PivotAggregatedAttribute="&quot;%mdde_PivotAggregatedAttribute_SourceObject.Code%&quot;.&quot;%mdde_PivotAggregatedAttribute.Code%&quot;" .endif() .if (%mdde_PivotAggregateFunction%) PivotAggregateFunction="%.X:mdde_PivotAggregateFunction%" diff --git a/decomposed/extensions/MDDE_LDM/Profile/BaseStructuralFeatureMapping/Criteria/mdde_Criterion_ParentIsMDDEMapping/Templates/mdde_BaseStructuralFeatureMapping_SourceAttribute_XmlExport_Template.xml b/decomposed/extensions/MDDE_LDM/Profile/BaseStructuralFeatureMapping/Criteria/mdde_Criterion_ParentIsMDDEMapping/Templates/mdde_BaseStructuralFeatureMapping_SourceAttribute_XmlExport_Template.xml index 20bba0a..08dcbf5 100644 --- a/decomposed/extensions/MDDE_LDM/Profile/BaseStructuralFeatureMapping/Criteria/mdde_Criterion_ParentIsMDDEMapping/Templates/mdde_BaseStructuralFeatureMapping_SourceAttribute_XmlExport_Template.xml +++ b/decomposed/extensions/MDDE_LDM/Profile/BaseStructuralFeatureMapping/Criteria/mdde_Criterion_ParentIsMDDEMapping/Templates/mdde_BaseStructuralFeatureMapping_SourceAttribute_XmlExport_Template.xml @@ -6,7 +6,7 @@ .if (%SourceFeature%) .comment If the source object is also known, the mapping is correct and we present the source attribute. .if (%mdde_SourceObject%) -%mdde_SourceObject.Code%.%SourceFeature.Code% +"%mdde_SourceObject.Code%"."%SourceFeature.Code%" .endif .comment If the mapped to value is a numeric value or encapsulated in single quotes, it's a static value. .elsif (%mdde_IsLiteralValue%) 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 62157d9..59e39db 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 @@ -3,7 +3,7 @@ mdde_BaseStructuralFeatureMapping_XmlExport_Template <%Feature.mdde_NamedObject_XmlElementName%Mapping Id="%ObjectID%" TargetAttribute="%Feature.Code%" .if (%mdde_BaseStructuralFeatureMapping_SourceAttribute_XmlExport_Template%) - SourceAttribute="%mdde_BaseStructuralFeatureMapping_SourceAttribute_XmlExport_Template%" IsLiteralValue="%mdde_IsLiteralValue%" + SourceAttribute="%.X:mdde_BaseStructuralFeatureMapping_SourceAttribute_XmlExport_Template%" IsLiteralValue="%mdde_IsLiteralValue%" .endif() .comment Add the Aggregate function if it is specified. .if (%mdde_Aggregate?%) diff --git a/decomposed/extensions/MDDE_LDM/Profile/ExtendedSubObject/Stereotypes/mdde_JoinCondition/Templates/mdde_JoinCondition_ParentAttribute_XmlExport_Template.xml b/decomposed/extensions/MDDE_LDM/Profile/ExtendedSubObject/Stereotypes/mdde_JoinCondition/Templates/mdde_JoinCondition_ParentAttribute_XmlExport_Template.xml index caf1951..10cca37 100644 --- a/decomposed/extensions/MDDE_LDM/Profile/ExtendedSubObject/Stereotypes/mdde_JoinCondition/Templates/mdde_JoinCondition_ParentAttribute_XmlExport_Template.xml +++ b/decomposed/extensions/MDDE_LDM/Profile/ExtendedSubObject/Stereotypes/mdde_JoinCondition/Templates/mdde_JoinCondition_ParentAttribute_XmlExport_Template.xml @@ -5,7 +5,7 @@ .if %mdde_ParentLiteralValue% %mdde_ParentLiteralValue% .elsif (%mdde_ParentSourceObject%) && (%mdde_ParentAttribute%) -%mdde_ParentSourceObject.Code%.%mdde_ParentAttribute.Code% +&quot;%mdde_ParentSourceObject.Code%&quot;.&quot;%mdde_ParentAttribute.Code%&quot; .endif 1654155830 WesselsH1 diff --git a/decomposed/models/ExampleDWH/EXAMPLEDWH.model.xml b/decomposed/models/ExampleDWH/EXAMPLEDWH.model.xml index 645950a..8224a9b 100644 --- a/decomposed/models/ExampleDWH/EXAMPLEDWH.model.xml +++ b/decomposed/models/ExampleDWH/EXAMPLEDWH.model.xml @@ -25,11 +25,11 @@ - + - + @@ -175,67 +175,67 @@ - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + @@ -320,17 +320,17 @@ - + - + - + @@ -364,33 +364,33 @@ - + - + - + - + - + - + - +