PREVIOUS_VERSION PREVIOUS_CONFIRMED_VERSION

You can access previous unconfirmed and confirmed versions of the records with two explicitly defined contexts.

The following table lists these contexts.

Context Description
PREVIOUS_VERSION Latest confirmed or unconfirmed version.
PREVIOUS_CONFIRMED_VERSION Last confirmed version.

The following example shows how to access the weight attribute value of the last confirmed version:

<var>PREVIOUS_CONFIRMED_VERSION/WEIGHT</var>

In MDM 8.2, you can also use this context variable to check record modification status.

                        <constraint>
                        <name>TestChanged</name>
                        <description>test changed</description>
                        <condition>
                                 <changed>
             <const type="string">PREVIOUS_CONFIRMED_VERSION</const>
                     </changed>
               </condition>
              <action>
             <assign>
                 <var>notes</var>
                 <const type="number">Record has changed</const>
             </assign>
             </action>
             </constraint>