|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
- M+ w# J H" D- H+ a: F: q7 m
Teamcenter BMIDE冷部署TEM Deploy方式原理和步骤
4 ~3 V! m3 {. o- X" s# L ; U/ L# u: R b$ R% s
Let‘s understand these steps in detail. " y J% t( T8 M" ^
1) Copy the template files, install scripts to TC_ROOT/install/<template>
; U" J- q; `+ [& v- H$ Y. Z% l/ ia. In this step the TEM will unzip files in your template package to the folder 3 m( M4 ]/ ^2 `1 W8 H+ t: ^
TC_ROOT/install/<templatename> % t6 E5 N& N q* R1 |- T$ w
2) Copy libraries to various folders in TC_ROOT
' Z8 s* |7 D4 u" I% b+ b0 x4 Na. TEM will copy the libraries or executables in your template package to respective folders in
* \, f3 |8 s1 n# _% I' QTC_ROOT 7 e. T L: `. }9 {) l$ i0 V
3) Download files to TC_DATA/model from datasets (Applicable from Teamcenter 8.3 onwards)
1 I2 Q/ C5 q, u! F/ xa. BMIDE utilities will download the current TC_DATA/model files from dataset
) r9 r& j3 ^( _% d$ J4) Copy the latest template files from TC_ROOT/install/<template> to TC_DATA/model
% B5 h* Z2 t- u) [2 h5) Generate delta.xml & O6 S) U; M! L( y3 d" O( f
a. In this step, the delta.xml is generated using the files in TC_DATA/model / z% O/ O! Y5 H( f8 N
i. Copy model.xml to model_backup.xml
) f% m$ c& s' U! S; }ii. Copy model_lang.xml to model_backup_lang.xml 4 p( Y- U8 x6 g% M# }
iii. Consolidate template listed in master.xml to model.xml and model_lang.xml
2 j: l0 [% f9 ~3 g% yiv. Load model_backup.xml and model_backup_lang.xml as old model
2 T/ i- H8 I0 }: uv. Load model.xml and model_lang.xml as new model ; Q0 R! {, W, i8 p" r+ `) W- ^
vi. Compare and generate delta.xml 4 Y7 j+ f8 Q) F2 w; L% i
b. Teamcenter 8.3 onwards 0 N: ]% S# u- |; z
i. If any errors occur during this step, all files in TC_DATA/model are restored from datasets
) \' ]: O. X+ d- p8 q(except for model.xml and model_backup.xml).
$ c7 _' O8 e2 r, K* }, ~$ F& |6) Upload files from TC_DATA/model to datasets (Applicable from Teamcenter 8.3 onwards) 2 X# K6 O; B" {! u) [( i3 I
a. If delta.xml file generation is successful, files in TC_DATA/model folder are uploaded to the database.
8 F3 D4 s: V9 v$ F1 j: [7) Run install scripts for all selected templates
B& Y: m) I5 Q2 Y" b. D2 t& ja. If template install, run the install_<template>.script for the template being installed. 6 k/ K, H$ E& O# v' f) M
b. If template update, run the install_<template>.script for all templates being updated. While running 8 m# B- j' E% l8 G) m. I0 k
the install script, TEM will skip the call to business_model_updater in the file
4 }8 ]8 f) l+ ~1 y, sinstall_<template>.default ; U& J- I, w4 `: O
8) Update the database with delta.xml using business_model_updater
$ [; V6 n/ u/ F! l$ r) Ra. The utility business_model_updater updates the database with the contents delta.xml
2 p6 E8 p# b: O9) Generate CLIPS rules, PLMXML schema file using the extracted file 9 S2 c+ f2 X8 S& F1 e
a. Invoke utility to generate the CLIPS rule file. This utility does the following.. % Z4 ^6 j8 _' M4 e/ \8 j( V
i. Extract data model from database.
6 J* ?$ E5 L4 U: j8 @ii. Load the extracted data model. If there are loader errors, TEM deploy will report failure. 9 K* k5 S( x4 o! \' g) ^# B
iii. Generate CLIPS rules using the loaded model. " U% r3 C. d3 h2 F5 B2 O$ q
b. Invoke utility to generate the PLMXML XSD file. This utility does the following..
- n; ]7 u4 {" t: [3 _i. Extract data model from database. $ o! \1 n! j( y) f/ \- A) c( k
ii. Load the extracted data model. If there are loader errors, TEM deploy will report failure. . [% J+ S" T* |$ `1 @ h
iii. Generate required schema file.
- K: T& j- ~( e) T# C
3 ~. z5 [ p' d, |
6 K( n( e. i6 W G2 F0 q; f! e2 B |
|