|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
: j3 n+ s5 {4 m$ v0 V. g, t O1 t
Teamcenter BMIDE冷部署TEM Deploy方式原理和步骤
% {7 w7 `/ W: F! i) G: B1 _
8 r5 B$ g; T/ B$ y% C% G, R/ |: j
Let‘s understand these steps in detail. : a! C- S4 v$ l+ `( {
1) Copy the template files, install scripts to TC_ROOT/install/<template> ' T) z) t! [" X$ `! v" n
a. In this step the TEM will unzip files in your template package to the folder 8 g8 S, d" P( L! K
TC_ROOT/install/<templatename>
- I6 B$ X( v4 Q" Z* s2) Copy libraries to various folders in TC_ROOT 0 V" ^6 ~* J8 }" K6 l" n# ^9 q
a. TEM will copy the libraries or executables in your template package to respective folders in 1 w& k% B, b- a% d, V g# p# o
TC_ROOT
* T+ Z! o; [5 h4 f$ z3) Download files to TC_DATA/model from datasets (Applicable from Teamcenter 8.3 onwards)
/ v0 v8 Q: T5 F$ y0 Ta. BMIDE utilities will download the current TC_DATA/model files from dataset , J; }; ]5 W" L" o% d! u+ \2 V
4) Copy the latest template files from TC_ROOT/install/<template> to TC_DATA/model
6 x L: y4 ?) Z0 k$ }/ q# w5) Generate delta.xml 6 }( F3 ]: z2 ^5 m1 d! t+ w0 i! R* o
a. In this step, the delta.xml is generated using the files in TC_DATA/model # h1 O7 P K5 P. f* [4 w {
i. Copy model.xml to model_backup.xml 7 I; X4 ?' K3 }2 M: w r
ii. Copy model_lang.xml to model_backup_lang.xml
4 o# O" E- ]8 q' Ciii. Consolidate template listed in master.xml to model.xml and model_lang.xml
T5 @/ K9 `1 `" E0 D1 u* g5 w; Iiv. Load model_backup.xml and model_backup_lang.xml as old model
; G ^) {9 E0 b( W* Z! Tv. Load model.xml and model_lang.xml as new model
4 r; u9 U& {9 B! d- @$ A" y6 svi. Compare and generate delta.xml
+ X: }3 O* F7 ~9 {b. Teamcenter 8.3 onwards
5 d, H" I1 l7 Z$ n) e0 Ei. If any errors occur during this step, all files in TC_DATA/model are restored from datasets
8 y: z0 r" t" n( U. {' U(except for model.xml and model_backup.xml).
! i+ Y0 B0 h2 Q! Z& A6) Upload files from TC_DATA/model to datasets (Applicable from Teamcenter 8.3 onwards)
* M5 B1 n/ C1 qa. If delta.xml file generation is successful, files in TC_DATA/model folder are uploaded to the database.
+ V) {% y, C6 `* P$ h- j6 F7) Run install scripts for all selected templates 6 `$ K+ B# s9 E- b
a. If template install, run the install_<template>.script for the template being installed. 7 j: ^9 H+ T& A3 b: h. L
b. If template update, run the install_<template>.script for all templates being updated. While running 6 O3 f$ V: K4 I* {5 G/ B
the install script, TEM will skip the call to business_model_updater in the file % x' G& ^+ j% p. J
install_<template>.default
+ `9 b: H# T4 S: U* Y$ I' T8) Update the database with delta.xml using business_model_updater " M4 @2 E" q+ ~) M
a. The utility business_model_updater updates the database with the contents delta.xml : A" V3 O- a9 ?; o
9) Generate CLIPS rules, PLMXML schema file using the extracted file ; }9 X1 j9 f& A0 `4 q
a. Invoke utility to generate the CLIPS rule file. This utility does the following..
' Y( c( M. e7 r9 g& zi. Extract data model from database. / i! B. @" N J5 \4 P
ii. Load the extracted data model. If there are loader errors, TEM deploy will report failure.
6 ?! Q1 x2 |8 R( G* ]/ ziii. Generate CLIPS rules using the loaded model. , C# K1 Q: Z4 ^" N$ B" d
b. Invoke utility to generate the PLMXML XSD file. This utility does the following.. , g& K$ l3 ]4 @4 T
i. Extract data model from database. 9 {! `4 I8 x, }0 W+ Q' d2 E) P
ii. Load the extracted data model. If there are loader errors, TEM deploy will report failure.
$ D; o) A7 g$ ?( }iii. Generate required schema file. $ B3 V1 h, c y1 E
& h# ^" [3 K( ` f( N$ }
4 \2 ^& W, l' P3 h; L' h @ |
|