1 v9 t( m0 G* J. J( @$ C ( J% w6 F* h0 B1 P2 R; F5 i5 j2 m4 O3 E
Teamcenter BMIDE热部署原理和步骤
' y! q) j2 p. Q8 k/ J
Let‘s understand these steps in detail. * Q7 F/ _- a7 C5 ~3 X
1) Package & Upload template files to FMS volume 4 s3 K/ b4 K& Z- z
a. In this step the BMIDE client will generate the new version of the template package and upload this 9 y! K+ s* s. C& ^8 i$ R6 T& y; x- @package to FMS volume using a SOA. ! n% O M& s# Y0 p- m) u
2) Download files to TC_DATA/model from dataset (Applicable from Teamcenter 8.3 onwards) 3 ]/ J3 V9 K& W* V1 g
a. In this step, we download files from the dataset instead of relying on files residing in TC_DATA/model + ^5 o& h* B% p
folder. For details see section titled ―Storage of TC_DATA/model files in dataset‖ . P9 w9 e+ P0 f) g0 L( m3) Download template package from FMS volume & v v" M9 _% v
a. In this step, we download the latest version of the template that the BMIDE client uploaded to FMS 6 |: f& `- K3 h* `% c
volume. , D" G# v1 T5 V* O2 f% c4) Generate delta.xml , T; B' a( P/ m0 d
a. In this step, the delta.xml is generated using the files in TC_DATA/model " G; {$ ?2 e9 {# li. Copy model.xml to model_backup.xml : p7 D* s9 M) D& b' }+ F
ii. Copy model_lang.xml to model_backup_lang.xml _+ D A* Z5 o8 f5 ^iii. Consolidate template listed in master.xml to model.xml and model_lang.xml / J/ p: _# o/ a3 E! [4 R. |, a2 Biv. Load model_backup.xml and model_backup_lang.xml as old model . s9 q8 j6 v7 ?+ B: sv. Load model.xml and model_lang.xml as new model 9 ^5 y& C; n2 @4 C( y- l d
vi. Compare and generate delta.xml . n2 _% V9 j; s7 L- X( T
6 c& b6 E1 E9 ~) p/ ~5 j% V
$ ?" h' }* h( B4 v3 A( z
b. Teamcenter 8.3 onwards, if any errors occur during this step, we restore all files in TC_DATA/model ) n! ~; B- M3 d, c4 Bfrom datasets ( except for model.xml and model_backup.xml) " J& y2 S9 z) C- j0 g
5) Update the database with delta.xml using business_model_updater $ r+ h! ` _ q# t \7 c
a. This is the step where the database is updated with the new data model. The utility : Q% p4 C- @ ?+ k' abusiness_model_updater updates the database with the contents delta.xml. ) Y- u/ S- w" \# j0 F" z8 ?- T/ c1 d Vb. If the update of the database fails, the contents of database will be extracted into model.xml and * A- O# `9 u2 t6 a
model_lang.xml * s* l4 E0 F( P: B; F( v U6) Generate CLIPS rules, PLMXML schema file using the extracted file : |; V$ R% b& R6 S9 l9 S
a. The CLIPS rule file is re-generated if any Condition definitions were updated " r+ E! n r) @6 [: ~
b. The PLMXML XSD is also re-generated 2 t& X0 _# W. a1 _& _
7) Upload files from TC_DATA/model to datasets (Applicable from Teamcenter 8.3 onwards) U7 ?) V2 F) N7 Ia. Finally the contents of TC_DATA/model folder are uploaded back to datasets to ensure it is in sync + o8 F. w* A& c( Awith the database ' j0 B* O- ]: t' J4 L) N! Q
8) Upload log files back to FMS volume 1 \* W1 l, t! J' p+ ta. All deploy log files are uploaded to the FMS volume 7 H) z+ I3 [/ |& ~
9) Download log files from FMS volume - P5 k9 ^9 d- t3 Q7 L' O8 {7 A
a. BMIDE client downloads log files to the client after deployment completes. $ f* D" Y" U; Q& l0 U4 r7 n4 M4 K6 T. X) [# e' \