Data representation in app_data_summary.xsl
Posted: 05 Jul 2011, 21:03
Hi Jonathan,
The app_data_summary XSL has a “Data Managed by Application” section that gives details of the data representations managed by the application.
<xsl:variable name="persistedInfoStores" select="$allInfoStores[pro:own_slot_value[pro:slot_reference='deployment_of_information_representation']/pro:value = $persistedApp2InfoReps/pro:own_slot_value[pro:slot_reference='app_pro_to_inforep_to_inforep']/pro:value]"/>
In the XSL code lines above, the persistedApp2InfoReps variable refers to the APP_PRO_TO_INFOREP_RELATION instances. On this class, the slot 'app_pro_to_inforep_to_inforep' has instances of Type “Information_Representation”. However, this is being compared to the slot 'deployment_of_information_representation' on Information_Store, which is of type “APP_PRO_TO_INFOREP_RELATION”. Since these instances are of different types, we get no results in the section, even when there is data.
I changed this code to compare the slot 'deployment_of_information_representation' on Information_Store to persistedApp2InfoReps frame id, and can now see the data representations:
<xsl:variable name="persistedInfoStores" select="$allInfoStores[pro:own_slot_value[pro:slot_reference='deployment_of_information_representation']/pro:value = $persistedApp2InfoReps/pro:name]"/>
A second issue is in case of an application with multiple environments (dev, test and prod), we see the same data representation multiple times. The “Data_Details” template is invoked for all instances of persisted data objects for that application, and in case of multiple environments, there would be multiple persisted data objects for the same data representation (one for each environment). I was wondering if this behavior is intended (to display all physical data objects), or if it should be changed to display a data representation only once.
Thanks,
Charu
The app_data_summary XSL has a “Data Managed by Application” section that gives details of the data representations managed by the application.
<xsl:variable name="persistedInfoStores" select="$allInfoStores[pro:own_slot_value[pro:slot_reference='deployment_of_information_representation']/pro:value = $persistedApp2InfoReps/pro:own_slot_value[pro:slot_reference='app_pro_to_inforep_to_inforep']/pro:value]"/>
In the XSL code lines above, the persistedApp2InfoReps variable refers to the APP_PRO_TO_INFOREP_RELATION instances. On this class, the slot 'app_pro_to_inforep_to_inforep' has instances of Type “Information_Representation”. However, this is being compared to the slot 'deployment_of_information_representation' on Information_Store, which is of type “APP_PRO_TO_INFOREP_RELATION”. Since these instances are of different types, we get no results in the section, even when there is data.
I changed this code to compare the slot 'deployment_of_information_representation' on Information_Store to persistedApp2InfoReps frame id, and can now see the data representations:
<xsl:variable name="persistedInfoStores" select="$allInfoStores[pro:own_slot_value[pro:slot_reference='deployment_of_information_representation']/pro:value = $persistedApp2InfoReps/pro:name]"/>
A second issue is in case of an application with multiple environments (dev, test and prod), we see the same data representation multiple times. The “Data_Details” template is invoked for all instances of persisted data objects for that application, and in case of multiple environments, there would be multiple persisted data objects for the same data representation (one for each environment). I was wondering if this behavior is intended (to display all physical data objects), or if it should be changed to display a data representation only once.
Thanks,
Charu