Data Model Live Updates
Data Model Live Updates
Purpose
The purpose of this lesson is to describe Teamcenter data model live updates.
Objectives
After you complete this lesson, you should be able to:
Help topics
Additional information for this lesson can be found in:
1
Introduction to live updates
Live updates is the revision on a live running system of nonschema data such as lists of values (LOVs)
that requires frequent update. The live updates functionality in the Business Modeler IDE allows an
administrator to revise data in the production database without shutting down the production server. It
also provides tighter control on which elements get updated live in a production database.
This table lists elements that can be used in live updates. To select the elements to allow for live updates,
use the Live Update preference.
Data elements that can be updated live (short list)
Display name
(Internal name) Description
Condition Defines conditional statements that resolve to true or false based on the
(Condition) evaluation of an expression.
Display Rule Determines the members of the organization who can view a business
(TcTypeDisplayRule) object in the create menus in the Teamcenter user interface.
GRM Rule Limits which objects can be pasted to other objects. Generic Relationship
(TcGRMRule) Management rules (GRMs) are defined using relationships.
Defines pick lists of values accessed by end users from a menu at the end
LOV
of a data field. Lists of values (LOVs) ensure consistent data entries in the
(TcLOV)
rich client.
Naming Rule Defines the naming conventions for the string property value in different
(TcNamingRule) type objects.
Naming Rule Attaches the naming rule or revision rule to a property on a business object
Attachments so the rule can take effect.
(TcNamingRuleAttach)
Note Type Defines a note object associated with a product structure occurrence in a
(TcNoteType) Structure Manager bill of materials (BOM).
Revision Naming Rule Defines the naming convention and sequence for a revision property.
(TcRevNamingRule)
Status Applies status to an object after it goes through a workflow. Typical statuses
(TcStatus) are Pending and Approved.
2
Display name
(Internal name) Description
Display name
(Internal name) Description
Alias ID Rule Stores part numbers and other attribute information for similar parts.
(TcAliasIdRule)
Application Extension Rule Determines when an application extension point is used, and
(TcAppExtensionRulev defines inputs and outputs.
Business Context Defines the user groups for whom a rule applies.
(TcBusinessContext)
Dispatcher Service Config Defines the visualization file format that a dataset file is translated
(DispatcherServiceConfig) into.
3
Display name
(Internal name) Description
ID Context Defines when you use unique item IDs. ID contexts are used when
(TcIdContext) you create alias IDs or alternate IDs.
Defines batch print settings. When you batch print an object such as
Print Configuration
an item revision, all the documents associated with that object are
(PrintConfiguration)
printed.
Storage Media Defines a storage device category such as a hard disk or optical
(TcStorageMedia) device. It is used by third-party content-storage systems.
System Stamp Configuration Defines the system stamp (such as date or watermarks) on
(SystemStampConfiguration) documents in batch printing.
4
Working with live updates
Use one of the following processes to update live data:
Single administrator
Use this process if you are a single administrator who makes live updates and distributes them to
servers. In this process, make your updates on a preproduction server before sending the updates
to production servers. This process is recommended in most situations.
Multiple administrators
Use this process if you have multiple administrators who make live updates and distribute them to
servers. In this process, there is no preproduction server.
Caution:
Siemens PLM Software recommends using a single administrator if possible to better control
the live updates distributed to servers.
A Business Modeler IDE developer works on a template project, tests the changes on the test site,
and during the next system downtime, packages the changes and sends them to the server
administrator.
In addition to the developer, there is a live data Business Modeler IDE administrator. This
administrator works on the live update project. During system downtime, this administrator collects
the changes (packages) from the developers and performs a TEM deployment of these changes to
the preproduction and production servers. When the server is running, this administrator works on
the live update project to add any necessary live updates.
5
Use this process if you are a single administrator who makes live updates and distributes them to
servers. In this process, make your updates on a preproduction server before sending the updates to
production servers. This process is recommended in most situations.
o Control all updates with one administrator.
o Perform live updates in one environment.
o Prevalidate updates.
o Package the template and deploy to each site through Teamcenter Environment Manager
(TEM).
Single administrator environment
6
Multiple Business Modeler IDE administrators of live updates
In the multiple administrator environment, there may be more than one live updates administrator per site,
and they share the responsibility of keeping their respective sites updated.
Use this process if you have multiple administrators who make live updates and distribute them to
servers. In this process, there is no preproduction server.
o Perform live updates with multiple administrators.
o Clients at each site update live data.
Multiple administrators environment
7
Developing extensions and testing
First, create a new template project so that you can store your extensions in it for easy deployment
to database sites. Then, perform a live deploy to push your template to a test Teamcenter server
where you can validate it in a safe environment.
Deploying a template to a production site
After you validate your template in the test environment, you can update your production
environment.
Editing extensions in a live production site
After you deploy your extensions to a production server, you may want to create and perform a live
update because you are updating the data on a live system.
Edit live data
Once the production site is running, you can edit the live data at any time.
Incorporate live data updates from the production site
Incorporate all the live data updates performed at the production site back into the development
environment.
Note:
More details of this step are in the next topic.
Eventually, you must incorporate all the live data updates performed at the production site back into the
development environment. This event occurs as you prepare for your next system downtime.
If you do not perform this step, and you deploy your development environment template (which does not
include the latest live data updates) to the production site, the live data updates already present in the
production site are removed. Because this is undesirable, the system blocks the deployment. To ensure
that the deployment is not blocked, you must perform this step.
To incorporate the latest live data, you can run a wizard from the development environment Business
Modeler IDE to log on to the production Teamcenter server and retrieve the latest extensions. Or, if your
production site is offline from your Business Modeler IDE, you can ask an administrator to run a command
line to extract the latest updates from the site and send them to you for incorporation. In either case, once
the extensions are incorporated, you can continue with testing, packaging, and deploying to your
production site.
8
Incorporating live data updates from the production site
1. Before you extract the latest live updates, it is a good practice to first block anyone from making any
more live updates to ensure you get the latest. You can do this by clearing the Allow Live
Updates check box in the Live Update preference dialog box in the rich client at the production
site.
2. From your development environment Business Modeler IDE, launch the Incorporate Latest Live
Update Changes wizard. Log on to the production site to pull the latest updates to your Business
Modeler IDE. The Business Modeler IDE presents the changes to you in a graphical merge tool.
Use this tool to determine which elements you want to keep or discard. Click Finish to save the
changes to your local Business Modeler IDE template.
3. At this point, you have integrated the latest live updates with your ongoing development work.
Deploy this template to your test environment and validate that it works as expected.
4. To update your production site, deploy the template to a production site.
5. Before allowing users to edit live data again, reset the Allow Live Updates check box on the Live
Update preference.
9
2. In Teamcenter, configure the Live Update preference to select the data model elements to update
on the server.
3. Create a live update project by choosing File→New→Project→Business Modeler IDE→New Live
Update Project.
4. Make changes to data in the template and perform live updates on the preproduction and
production servers by clicking BMIDE on the menu bar and choosing Deploy
Template or Deployment Page.
5. If other sites also require the data updates you have created, such as vendors or partners, you can
package the template and send it to each site so the updates can be installed using Teamcenter
Environment Manager (TEM).
6. After live updates have been installed on a production server, make live updates visible to end
users.
7. In the developer environment, incorporate the latest live updates from the production site by running
the Incorporate Latest Live Update Changes wizard.
Note:
This check box is selected by default when you create a new template project.
3. Install the Business Modeler IDE template project to the server.
10
o Test server
If you are installing to a test server only, choose BMIDE→Deploy Template on the menu bar.
o Production server
Package the template and install it using Teamcenter Environment Manager (TEM).
To select the data elements to allow for live update use the My Teamcenter application in the rich
client Edit→Options and select Live Update in the left pane. Move the data elements from
the Available list on the left to the Selected for Live Updates list on the right and click Apply.
If you have a four-tier environment, recycle servers in all server manager pools to ensure each
warm server receives the latest preference settings. For example, in the .NET server manager
administrative interface, click the Restart Warm Servers button.
Live update preference
When you perform a live update, only the selected data model elements are updated on the server.
Note:
When you select the Allow Live Updates? check box, it sets
the BMIDE_ALLOW_LIVE_UPDATES preference to true.
11
Create a live update project
A live update project is a project that manages live data in an already-installed custom template on the
server. A live update data project holds only data to be deployed to a running production server. Create
one live update project for each custom template enabled to receive live updates on the server.
1. Ensure that a template is installed on the server that is enabled to receive live data updates.
2. Choose File→New→Project, and in the New Project dialog box, choose Business Modeler
IDE→New Live Update Project.
3. Fill in the appropriate Teamcenter Login information and connect to the server and complete the
live update project creation process.
a. If there is only one template on the server that is enabled for live updates, the Next button is
unavailable. Click Finish.
b. If there are multiple templates on the server enabled for live updates, click Next.
Click the arrow in the Template Name box to select the template to use for live updates.
Click Finish.
4. The project is created and named template-name_live_update.
12
2. Revise data, such as lists of values (LOVs).
3. Deploy to a preproduction server for testing.
o Right-click the live update project in the Business Objects view and choose Deploy
Template, or choose BMIDE→Deploy Template on the menu bar.
o Type the password, click the Connect button, and when a connection is established,
click Finish.
4. Note:
5.The system checks if the live update project is synchronized with the server. If there is data on
the server that is not in the live update project, the Synchronize wizard runs, allowing you to
resolve the conflicts.
13
6. Deploy to production servers.
o After you finish testing and are ready to deploy to the production servers,
choose BMIDE→Deployment Page or right-click the live update project in the Business
Objects view or the Extensions view and choose Open Deployment Page.
14
The packaged files are saved in the packaging/live_update directory under the project.
Packaged files are placed in timestamped folders to keep track of packages. The most recent
package is in the top folder.
15
2. Copy the template-name_template_live_update.zip file from the packaging directory on your
Business Modeler IDE client to a directory that is accessible by the administrators at other sites.
3. Administrators at other sites perform the live update by installing the live updates using TEM. In this
scenario, TEM has already been used to install the template that the live updates are intended for.
o In the Feature Maintenance panel, under the Teamcenter Foundation section, select Update
the Database (Perform Live Updates Only - System downtime not required). This updates
the database with live updates that contain only nonschema data such as LOVs and rules.
Note:
The system checks if the live update project is synchronized with the server. If there is data
on the server that is not in the live update project, the update fails. You must synchronize
the data model from the Business Modeler IDE, repackage, and attempt the update once
more.
If installation of the live updates fails, check the message in the TEM panel. Installation
may have failed because the server you are attempting to install to does not have the Live
Update preference set to accept live changes. In this case, you must ask the administrator
of that production server to change the preference to accept the live updates.
16
Incorporate latest live updates
At the next system downtime, you must incorporate all of the latest updates from the production
environment into your standard template project. Run the Incorporate Latest Live Update Changes wizard
to either update directly from the production server or update from a template file obtained from the
production server using the package_live_updates utility.
1. Choose BMIDE→Incorporate Latest Live Update Changes. Click Next.
17
o In the Project box, select the standard project into which you want to incorporate the live
updates.
o Under Database Site, select the mode to provide the data model:
Teamcenter Server - Select if you want to incorporate all the custom live updates data
model on a server into your project. This option accesses the server directly to obtain the
templates from the server.
Live Update Zip - Select if you want to incorporate all the custom live updates data model
from a template file into your project. Use this option if you cannot access the server
directly.
o Depending on your selection, perform one of the following in the Source Model dialog box:
If you selected Teamcenter Server, in the dialog box, type your user name and password
and click Connect to log on to the server.
If you selected Live Update Zip, click the Browse button to the right of the Template
Zip box to locate the packaged template's ZIP file.
The system checks if the live update project is synchronized with the server. If there is data on
the server that is not in the live update project, the Merge Data Model wizard runs, allowing you
to resolve the conflicts.
Caution:
Be patient. The incorporation may take some time.
3. In the Merge Data Model dialog box, resolve any conflicts that the merge compare identified
between the data model in your target project and in the source.
Note:
Because there are many different scenarios you may encounter when performing a merge,
samples are provided in the Merge Samples wizard. For tutorials, choose BMIDE→Merge
Samples.
18
4. Once you incorporate live update changes, you perform a full model update with Teamcenter
Environment Manager (TEM).
o Package your template by choosing BMIDE→Package Template Extensions.
o In the Feature Maintenance panel, under the Teamcenter Foundation section, select Update
the Database (Full Model - System downtime required). This updates the database with the
full data model in the standard (non live update) template.
19
o Select your template in the table and click Next.
20
Make live updates visible to end users
Package live updates in the database
Run the package_live_updates utility to package data model.
Study the merge samples
Browse through the list of available samples to learn how to use the merge tool. Note that these are
only samples. Clicking the Finish button has no effect on your data model. To access merge
samples, choose BMIDE→Merge Samples.
Select the project to be synchronized and choose BMIDE→Synchronize with Server, or click
21
Automatic Merge - used to control the automatic merging of the data model when the Incorporate
Latest Live Update Changes wizard is launched. If the check box is selected, all differences except
for the change conflict differences are automatically merged when the wizard runs. If the check box
is cleared, no merges are done when the wizard is launched.
Live Update Synchronization
o Always show Merge Tool during synchronization - displays the Merge wizard during
synchronization even if the tool can automatically reconcile all data model differences without
user intervention. This option allows you to inspect the incoming changes made by other users
to the live update data in the database. In this mode, you must merge each element. This is
the default selection.
o Show Merge Tool only for conflicts that need my resolution - automatically reconciles all
data model differences without user intervention. If any change conflict differences are found,
the Incorporate Latest Live Update Changes wizard is launched so you can address the
conflicts.
22
Make live updates visible to end users
After live updates have been installed on a production server, the updates are visible to end users who
log on after the update. However, users logged on when the update is made must log off and log on again
to ensure that the servers cycle through the changes.
When each user logs on, a server is started and assigned to the client. During startup, the types,
properties, and LOVs in the database are built into a cache for performance reasons. Each server has its
own cache. When a user updates an LOV to the database, each client still sees the original LOVs and
rules because server caches are not updated. Administrators ask users to log off and log on again to see
the changes so that a new cache is built.
In four-tier environments, administrators can use the server manager to restart servers at off-peak hours
to ensure all live update changes are reflected in servers. On J2EE consoles, a system administrator can
facilitate warm server refresh. (This is not available on .NET.)
After running this utility, you can merge the live updates that the template contains into a template on your
system by running the merge wizard.
23
Study the merge samples
To become familiar with merge scenarios, study the merge samples. Choose BMIDE→Merge Samples.
Stepping - click the forward and backward arrows to step through each change.
Filtering - tTo see only the rows where there are differences, click the Display Equal Rows button
so that it is unselected. This is a toggle button. When it is unselected, only rows with different
values are shown. When it is selected, all rows are shown, including all those with equal values.
Automerge - click the Auto Merge button to let the tool merge all changes for you. Merged
(changed) elements display a light-blue background for easy identification.
24
Before automerge
25
After automerge
Summary
The following topics were taught in this lesson:
Understand the difference between single administrator and multiple administrators live update
process.
Enable a template for live updates.
Create a live update project.
26
27