|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
0 _6 j: ^- D# g Teamcenter BMIDE冷部署TEM Deploy方式原理和步骤
% x2 m& |( C5 B' h
. Q W2 u: w ^0 m& }" F% HLet‘s understand these steps in detail. 7 k# O0 m6 Z! U- {2 _
1) Copy the template files, install scripts to TC_ROOT/install/<template>
$ s1 K a$ P: Na. In this step the TEM will unzip files in your template package to the folder
$ E2 E- R7 H- Y" A1 ETC_ROOT/install/<templatename>
, f! \8 [) A* Q( K5 x% Z1 Z* r2) Copy libraries to various folders in TC_ROOT % o9 F8 f2 e5 w0 ] l% I
a. TEM will copy the libraries or executables in your template package to respective folders in * Q& [3 U: e/ R$ l6 P
TC_ROOT
: y. d5 P& i* P( U( F0 U+ @. ]0 t3) Download files to TC_DATA/model from datasets (Applicable from Teamcenter 8.3 onwards) 9 F7 u4 r* M/ L8 s1 ]8 U$ N) o
a. BMIDE utilities will download the current TC_DATA/model files from dataset
! O' ]! A. [$ c* N; w$ F4) Copy the latest template files from TC_ROOT/install/<template> to TC_DATA/model 8 U$ U4 _ Y7 P3 K
5) Generate delta.xml
# v- w4 U5 C. e! P& K z7 u1 Ta. In this step, the delta.xml is generated using the files in TC_DATA/model
$ e- G, V0 [, d }i. Copy model.xml to model_backup.xml , K/ d G z) R0 h
ii. Copy model_lang.xml to model_backup_lang.xml
4 f4 `% N3 Q5 _; z' Liii. Consolidate template listed in master.xml to model.xml and model_lang.xml ) a1 a l6 w7 L
iv. Load model_backup.xml and model_backup_lang.xml as old model + m1 i: o" C. b- j5 n$ E& C
v. Load model.xml and model_lang.xml as new model
6 A/ F. j+ d8 Q& O% j' Tvi. Compare and generate delta.xml
# b0 y. p2 _" p9 Wb. Teamcenter 8.3 onwards 1 a" o% f" S$ e C3 L6 x
i. If any errors occur during this step, all files in TC_DATA/model are restored from datasets
2 {: Z. V e8 z(except for model.xml and model_backup.xml). 1 Q" w! P+ B2 Z6 L8 a0 r+ A
6) Upload files from TC_DATA/model to datasets (Applicable from Teamcenter 8.3 onwards)
; Q. J/ F+ f) sa. If delta.xml file generation is successful, files in TC_DATA/model folder are uploaded to the database. " a( e! T+ A- J5 S
7) Run install scripts for all selected templates
4 M4 W, q- H6 c7 k% ca. If template install, run the install_<template>.script for the template being installed. + |9 _# }3 M# }' N" v4 v
b. If template update, run the install_<template>.script for all templates being updated. While running
) J5 ~' {: M: X) v e" y4 P( |the install script, TEM will skip the call to business_model_updater in the file
1 E6 Z1 O- N" e p6 jinstall_<template>.default 7 @# ^. k" y' ^, h
8) Update the database with delta.xml using business_model_updater
( J& z$ f+ S5 u& r+ F$ g1 |a. The utility business_model_updater updates the database with the contents delta.xml
- L/ _) {, W8 s, c% W, I9) Generate CLIPS rules, PLMXML schema file using the extracted file
3 [$ `2 u! T3 `* E$ ca. Invoke utility to generate the CLIPS rule file. This utility does the following.. / P* R' b/ V4 c9 N/ l: s0 n
i. Extract data model from database.
4 x" B/ q0 v! \ii. Load the extracted data model. If there are loader errors, TEM deploy will report failure. 2 F# y- Q+ L' ^' ?/ R7 M j2 U5 F* H2 w
iii. Generate CLIPS rules using the loaded model. 1 @- }4 ~, l6 k* M0 `
b. Invoke utility to generate the PLMXML XSD file. This utility does the following.. / }) N2 R9 J2 x3 n3 {& L
i. Extract data model from database.
+ k% P: y% a8 w( f2 Rii. Load the extracted data model. If there are loader errors, TEM deploy will report failure. . S; A% I' W' e, Y- i$ S* }5 {
iii. Generate required schema file.
0 g/ C4 h) ~* V5 C. C- G' m4 M! {- P8 D. w
1 m! F7 R4 I$ Y1 ~* x/ N' G+ | |
|