RADE

Data Model Customizer for ENOVIA

Migrating Existing ENOVIA Masks

Customizing ENOVIA
Quick Reference

Abstract

This article explains how to migrate customized masks from an ENOVIA version N to a subsequent version of ENOVIA. The masks used in this sections are only samples. It would be too long to explain all the steps of an original DS mask, which can contain more than 4 000 lines. But we will present this migration as if the sample file was a DS mask, created during ENOVIA installation and customized then.  


What Do You Want to Do?

You have used our ENOVIA R13 for a while, and to improve effectiveness, you have customized the default Dassault Systemes masks. Now you want to migrate from ENOVIA R16 to ENOVIA R17, and you would like to keep our masks customization, and also to take advantage of the new R17 functionalities. That is why you need to migrate your R16 masks to new R17 masks. Your ENOVIA server is installed on Windows.

Retrieving Needed Masks for Merging

To run the masks merger, the following files are required:

  1. Mask DEF N (Default mask Release N)
  2. Mask CUST N (Customized mask Release N)
  3. Mask DEF N+1(Default mask Release N+1)

To get these files, run the following command:

1. $PREFIX$ -run "VPMPeopleUpdate -savemask /home/data/MaskMigration/DefaultN"

2. $PREFIX$ -run "VPMPeopleImport -savemask /home/data/MaskMigration/CustoN"

3. Then, run the ENOVIA LCA database migration using the Upgrade507_Enovia.sh command. If you have customized your database using RADE tools,migrate your CAA Workspace and launch a publish on it. To do so, run : $PREFIX$ -run "VPMPeopleUpdate -savemask /home/data/MaskMigration/DefaultN+1"

where :

For further details on VPMPeopleImport, refer to ENOVIA V5 LifeCycle Applications Documentation: Administration Tasks: People, Organization and Security Tools.

You have now three masks which can be compared to evaluate which change must be done.

Writing Rules Files

If you have a look at  Understanding migration of customized mask, you can discover that a behavior already exists to deal with conflicting issues, while merging. But in some cases, a user can keep an attribute which have been added to default DS mask N+1, while another decides to ignore this attribute (or any other element in a mask). So, this RADE tool provides you with the opportunity to create rules file. So, when an alternative choice occurs, the merger engine first tries to find a rule that matches with the current node, then it applies this rule. So writing rules is really important!

Here, we have our 3 mask files.

Between the default mask N and N+1, you can see that E5 has been added to our new default mask, and E4 has been removed from the old mask.

However, if you have a look at the customized mask, the entity E4 is used and has been customized. And the entity E3 has been removed, and E2 has been added...

With the default behavior of the merger, you can expect that E4 will be removed from the new generated mask, E2 and E5 will be added.

Let's assume that you want to keep entity E4.  You must write some rules to explain this.

You keep the entity E4 which appears in the customized mask:

   --® keep custo E::E4

As Keep action operates on the sub tree, define orders for the subtree. Here only one property is met. So you only want to keep the property alias appearing in the customized mask for entity E4:

  --® keep custo E::E4/_::alias

You rules file is stored in: /home/data/MaskMigration/Rules.txt

Migrating ENOVIA Customized Masks

Once you have retrieved all needed files for the migration, run the merger application.
So, launch the CATVBTMaskMerger command as follows :

  $PREFIX$ -run "CATVBTMaskMerger FILE1 FILE2 FILE3 FILE4 -rule RULE" -direnv $EnvDir$ -env $EnvName$

where :

In this example:

/home/data/DassaultSystemes/B14/aix_a/code/bin/catstart
  
                                                      -run "CATVBTMaskMerger
                                                        /home/data/MaskMigration/DefaultN/DEFAULT.custo
                                                        /home/data/MaskMigration/DefaultN+1/DEFALUT.custo   
                                                       
/home/data/MaskMigration/CustoN/customaskN.custo
                                                        /home/data/MaskMigration/CustoN+1/newcustomask.custo
                                                       -rule /home/data/MaskMigration/Rules.txt"
                                                     
-env CAA_RADE.V5R14.B14 -diren /home/data/DassaultSystemes/CATEnv

The following charts explain the different steps while merging these 3 masks:

[Top]


 

[Top]


 

[Top]


[Top]


 

[Top]


 

[Top]


 

[Top]


 

[Top]


 

[Top]


 

[Top]


 

[Top]


 

[Top]


 

[Top]


 

[Top]


 

 

[Top]

Import the new mask into the database using the following command:

$PREFIX$ -run "VPMPeopleImport  /home/data/MaskMigration/CustoN+1/newcustomask.custo"

where :

 

References

[1] Understanding migration of customized mask
[2] For more details on ENOVIA masks, refer to ENOVIA V5 LifeCycle Applications Documentation: Enterprise Architecture Foundation: Enterprise Architecture Administration Guide: Administration tasks: Understanding Object Access Control.
[Top]

History

Version: 1 [March 2004] Document created
Version: 2 [March 2006] Document updated
[Top]

Copyright © 2006, Dassault Systèmes. All rights reserved.