Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Migrate Measure Form SMMMeasureAPI 0.3.00 to SMMMeasureAPI 0.6.00

Antonin Abherve edited this page Nov 10, 2017 · 1 revision

Measure implemented with Modelio

To migrate a measure implemented with Modelio, you will have to :

  • Upgrade the version of SMMDesigner module deployed ou your project to a version > 4.05 (Module Repository)
  • Generate and Package the Measure unsing SMMDesigner packaging tool.
  • The measure will be migrated automaticly

Measure implemented manualy

The java implementation is not impacted by the migration but you will have to update the MeasureMetaData.xml file packaged in your measure.

Before start the migration, please document you about the new structure of the MeasureMetaData.xml file : https://github.com/ITEA3-Measure/SMMMeasureApi/wiki/Metadata-File

  • Remove the unite property
0.3.00 : <Measure name="RandomMeasure" type="DIRECT" unite="NUMERIC">
0.6.00 : <Measure name="RandomMeasure" type="DIRECT">
  • Add Category and Provider properties
0.3.00 : <Measure name="RandomMeasure" type="DIRECT"">
0.6.00 : <Measure name="RandomMeasure" type="DIRECT" category="TestMeasure" provider="Measure.org">
  • Add Unit definition (data model of the measurement returned by the measure ) and precise the type of each fields
0.3.00 : <Measure ... unite="NUMERIC">
0.6.00 :  <unit name="RandomMeasurement">
            <fields fieldName="FinalValue4" fieldType="u_double"/>
            <fields fieldName="Variation4" fieldType="u_integer"/>
            <fields fieldName="myDate" fieldType="u_date"/>
          </unit>
  • Add types for scope properties
0.3.00 : <scopeProperties defaultValue="0" name="PreviousValue">
           <description>PreviousValue</description>
         </scopeProperties>
0.6.00 : <scopeProperties defaultValue="100" name="MaxRange" type="INTEGER">
           <description>MaxRange</description>
         </scopeProperties>
         <scopeProperties defaultValue="Borned" name="Kind" type="ENUM">
           <description>Kind</description>
           <enumType>
             <enumvalue label="Is Borrned" value="Borned"/>
             <enumvalue label="Not Borrned" value="UnBorned"/>
           </enumType>
         </scopeProperties>

Clone this wiki locally