Teamcenter Extension

Last modified: July 23, 2024

1 Introduction

The Teamcenter Extension is a Mendix Extension built using the Mendix Extensibility Framework to provide you with an effortless means to harness the capabilities of Teamcenter Connector for Mendix. Teamcenter Extension is layered atop the Teamcenter Connector.It provides a low-code experience by making it easier to visualize and access Teamcenter data model and automate creation of Mendix domain models and microflows.

1.1 Typical Use Cases

Teamcenter Extension offers a list of use cases for which domain models and microflows can be created. After you select a use case, it uses an import mapping approach similar to Mendix import mapping. Here, Teamcenter Extension allows you to select data from the business model of your Teamcenter instance. Based on the selected use case, the import mapping and, for some use cases, additional configurations, Teamcenter Extension generates and updates the domain model for your integration and generates one or more ready-to-use microflows that you can drag and drop into your application logic.

Teamcenter Extension offers the following integration options:

  • Get item revisions
  • Get workspace objects
  • Create item and item revision
  • Update item and item revision
  • Revise item revisions
  • Get structures

1.2 License

Teamcenter Extension is free to download and use. You may, however, require a Teamcenter (Author or Consumer) license to connect to Teamcenter.

1.3 Prerequisites

The compatibility between Teamcenter Extension and Studio Pro is as follows:

  • Teamcenter Extension V 1.0.0 is compatible with Studio Pro versions between 10.6.5 and 10.7.

  • Teamcenter Extension V 2.0.0 is compatible with Studio Pro version 10.12.1 or higher.

1.4 Dependencies

You must have these Marketplace modules installed:

  • Community Commons: only needed for Teamcenter Extension V 1.0.0

  • Teamcenter Connector: needed for all versions of Teamcenter Extension

    The table below details the compatibility between Teamcenter Extension, Teamcenter Connector, and Studio Pro.

Teamcenter Extension Version Teamcenter Connector Version Studio Pro Version
1.0.0 3.6.1, V 3.6.0, V 3.5.0 10.6.5 thru 10.7
2.0.0 2406.0.0 10.12.1 and above

1.5 Demo App

To see Teamcenter Extension in action, download and play with the Teamcenter Extension Sample App.

2 Installation

Follow the instructions in Using Marketplace Content to import Teamcenter Extension into your app.

3 Usage

3.1 Actions

3.1.1 Get Item Revisions from Teamcenter

The Get ItemRevision action allows you to generate the domain model and microflow to search for and retrieve ItemRevisions or its specialization. The resulting microflow implements the saved query Item Revision... from Teamcenter.

3.1.2 Get Workspace Objects

The Get Workspace Objects action allows you to configure and generate the domain model and microflow to search for and retrieve Workspace Objects or their specialization from Teamcenter. This action implements the saved query General.. from Teamenter

3.1.3 Create Item and Item Revision

The Create Item and Item Revision action allows you to configure and generate the domain model and microflow to create an Item with ItemRevision or its specializations in Teamcenter. The resulting microflow implements the Create Object and Update Properties actions from the Teamcenter Connector. With the Create Object action, the Item and ItemRevision get created in Teamcenter, setting the Teamcenter properties that need to be set upon creation. With the Update Properties action, the remaining properties are updated in Teamcenter.

3.1.4 Update Item and Item Revision

The Update Item and Item Revision action allows you to generate the domain model and microflow to update an Item with ItemRevision or their specializations in Teamcenter. The resulting microflows implements the Update Properties action from the Teamcenter Connector.

3.1.5 Revise Item Revision

The Revise Item and Item Revision action allows you to generate the domain model and microflow to revise an ItemRevision or its specializations in Teamcenter. The resulting microflow implements the Revise Object and Update Properties actions from the Teamcenter Connector. With the Revise Object action, a new ItemRevision is created, setting the Teamcenter properties that need to be set upon revising. With the Update Properties action, the remaining properties are updated in Teamcenter.

3.1.6 Get Structures

The Get Structures action allows you to generate the domain model and microflows to configure a BOM window and retrieve structure data from Teamcenter. This feature supports the retrieval of structures with the following:

  • RevisionRule (or default RevisionRule)
  • VariantRule
  • BOMWindow property flags

Depending on the configuration, microflows are generated to do the following:

  • Create BOMWindow (implementing the Create BOM Windows2 action from the Teamcenter Connector)
  • Retrieve RevisionRules (implementing the Get Revision Rules action from the Teamcenter Connector)
  • Retrieve VariantRules (implementing the Get Variant Rule action from the Teamcenter Connector)
  • Expand a single BOMLine (implementing the Expand One Level 2 action from the Teamcenter Connector)
  • Expand all BOMLines (implementing the Expand All Levels action from the Teamcenter Connector)
  • Close the BOMWindow (implementing the Close BOM Windows action from the Teamcenter Connector)
  • Get the root BOMLine for a BOMWindow.

To work with structures, such as BOMs, you need to first create a BOM window in Teamcenter. One can retrieve the root BOM Line from the BOM window and from there start expanding the structure either line by line or with all BOM Lines at the same time. The BOM Lines define the structure (based on the configuration you passed when generating the BOM window). Each BOM Line is associated with a single ItemRevision.

This feature is designed specifically for generating microflows and domain models to retrieve and display simple BOM structures (unconfigured or configured). For other scenarios, consider alternative solutions. See the table below:

Scenario Suggested Solution
Work with large or complex BOM structures Use Active Workspace
Have performance concerns Use Active Workspace
Transfer an entire BOM from Teamcenter to another system Use Active Integration Gateway
Compare BOMs from different systems Use Active Integration Gateway
Author BOMs Use Active Workspace
Create BOM configurations Use Active Workspace

3.2 Landing Page

To open Teamcenter Extension in Studio Pro, go to Extensions > Teamcenter Extension > Teamcenter Extension. If you use Studio Pro versions 10.7 or lower, Teamcenter Extension is available under View > Teamcenter Extension.

The landing page has with three tabs: Menu, History, and Settings.

3.2.1 Menu Tab

The Menu tab displays use cases or actions you can create artifacts for using Teamcenter Extension.

3.2.2 History Tab

The History tab displays the history of all actions (also referred as integrations) carried out in Teamcenter Extension.

On the History tab, you can view details of each action, such as entities and microflows created, Teamcenter URL used to connect with, the preview of the import mapping, and much more.

You can also edit, duplicate or delete an action using the buttons in the upper-right corner:

  • Delete – This deletes the selected action from the list. However, it does not delete the corresponding entities and microflows, since they may impact pages or other integrations.
  • Duplicate – This allows you to create a new action based on an existing one. When you click Duplicate, it clones the selected action and takes you to the import mapping page, where you can modify your mapping and subsequently create new domain model and microflows. This operation does not modify any of existing actions.
  • Edit – This allows you to modify an existing action and updating existing domain model and microflows. When you click Edit, it takes you to the import mapping page, where you can add or edit entities, attributes, and associations, subsequently updating the domain model and microflows.

It is not recommended to make specific adjustments to artifacts generated by Teamcenter Extension outside of Teamcenter Extension. Doing so may result in breaking the integration. Instead, you should make adjustments inside Teamcenter Extension using the Delete, Duplicate or Edit operations, wherever possible. Examples of adjustments that are not advisable outside Teamcenter Extension are as follows:

  • Modifying the CreateInput and CompoundCreateInput entities generated from The Create Item action
  • Modifying any entity generated from the Revise Item Revision action
  • Deleting attributes or associations generated by Teamcenter Extension
  • Deleting or editing microflows generated by Teamcenter Extension

However, you can make the following adjustments outside Teamcenter Extension:

  • Adding attributes or associations
  • Moving microflows
  • Renaming microflows

If you select an item in the Action list, Teamcenter Extension performs a validation check to see if the Teamcenter objects, entities, and microflows still exist and are valid. The results are reported in the Validation section.

3.2.3 Settings Tab

The Settings tab displays the Teamcenter configuration page.

On the Settings tab, you can provide your Teamcenter Instance details to connect to, while building your app and using Teamcenter Extension. Click Edit to open a panel to enter details. The certificate path should be relative to the app directly.

Teamcenter Extension supports both HTTP and HTTPS connections. Additionally, it supports certificates that have .crt and .pfx file extensions.

3.3 Import Mapping

Clicking any one of the actions opens an empty import mapping page. Here you can define what data you want to retrieve from Teamcenter and how to handle this data in Mendix. Depending on the action, the import mapping page starts with one or multiple entities or objects to configure, one per business object that needs to be configured.

During configuration, the import mapping page will build up a preview of the Mendix domain model involved in the integration. In addition, the import mapping page shows the corresponding business objects on the Teamcenter side. For this, Teamcenter Extension displays both the display names of the objects and their properties, references, relations, and the corresponding technical names, as they will end up in the Mendix domain model.

In Teamcenter Extension, the import mapping consists of the following steps:

  1. Object mapping: As Teamcenter works with many layers of specializations of its business objects, in the import mapping page, you need to configure which object type you want to retrieve from Teamcenter and what Mendix objects need to be created, when retrieving these business objects. This is called object mapping.
  2. Selection of properties, references, and relations: Configure which properties, references, and relations you want to retrieve from Teamcenter and include in your Mendix model .

3.3.1 Object Mapping

Clicking any one of the empty boxes in the import mapping page opens the object mapping dialog. On the left side of the dialog, a tree with all relevant business objects available from the configured Teamcenter instance is displayed. If you have created any custom business objects in Teamcenter BMIDE, those objects will be shown as well. The right side shows a tree of all relevant entities in your Mendix app.

The relevant objects and entities are dependent on the actions you are configuring. For example, for the action to get ItemRevisions from Teamcenter, the Teamcenter tree has an ItemRevision as its root object. That means that, for this action, you can only select ItemRevisions or its specializations. Similarly, in this example, the Mendix tree has the TcConnector.ItemRevision entity as its root entity.

When retrieving a tree of objects, relevance can also be based on the type of the relation or reference. When working with typed relations o references, the type of Teamcenter business object is dictated by the relation or reference. By limiting the list of Teamcenter objects and Mendix entities to those that are relevant, Teamcenter Extension guides you to select Teamcenter business objects that make sense in the context of the action you want to perform.

To configure which type of Teamcenter business object you are interested in and what type of Mendix entities this should be mapped to, select a business object in the Teamcenter tree on the left side and an entity on the Mendix tree on the right side and click OK.

It is also possible to create new entities for your integrations. This new entity needs to be a specialization of the root entity in the Mendix tree or one of its specializations. When you want to use a new entity, click your generalization of choice, click the Create new specialization of selected entity check box and provide an entity name. Once finishing the configuration for the actions, Teamcenter Extension will create a new entity with the given name and the selected entity as its generalization. You can also reuse or create the specialization of the generated entities in subsequent actions.

Once you click OK, you will return to the import mapping tab with a sidebar open for you to configure which Teamcenter properties, references, and relations to include when retrieving data for this business object.

3.3.2 Teamcenter Properties, References, and Relations

In the import mapping sidebar, you can configure which Teamcenter properties, references, and relations to include when retrieving data from Teamcenter. The import mapping sidebar is launched automatically after the completion of object mapping. When you are on the import mapping page and the sidebar is closed, you can double-click a previously configured entity to open the sidebar for that entity.

The sidebar shows all properties, references, and relations for the configured Teamcenter object. Depending on the use case, each one of them is accompanied with check boxes for reading ( ) and writing ( ) for you to configure what to include when retrieving data from or creating data in Teamcenter.

You often see that check boxes are selected by default or grayed out. In general, the following rules apply:

  1. Properties that are already available on the Mendix entity or one of its generalizations are selected by default and cannot be unchecked.
  2. Properties, references, and relations for Marketplace entities are disabled by default, as it is not good practice to change Mendix marketplace content.

As an example, if a check box for reading ( ) is selected and grayed out, it means that property already exists as an attribute on the selected object or one of its generalizations. Similarly, if a check box for writing ( ) is selected and grayed out, it means the property is required during creation or revision of the selected object.

You can select and deselect the properties, references, and relations depending on the data you need from Teamcenter. When you select a reference or relation, a new placeholder entity will be added to the object mapping tree. You will need to perform the import mapping for these referenced or related objects in a subsequent step (business object mapping and selection of Teamcenter properties, references, and relations).

3.4 Microflows and Domain Model

Once you finished import mapping, click Generate to create microflows for the selected use case and its corresponding domain model. These artifacts can be used in your app logic.

4 Upgrading Teamcenter Extension V 1.0.0 to V 2.0.0

If you use Teamcenter Extension V 1.0.0 with Teamcenter Connector V 3.6.1 or below, and want to upgrade to Teamcenter Extension V 2.0.0 and Teamcenter Connector V 2406.0.0, perform the following procedure:

  1. Open your app in Studio Pro version 10.12.1 or higher.

  2. Follow the instructions in How to Use Marketplace Content in Studio Pro to download Teamcenter Extension V 2.0.0 from the Marketplace and install it.

  3. When a warning dialog box opens, click Trust module and enable extension. Otherwise, Teamcenter Extension will not be installed.

  4. Follow the instructions in How to Upgrade the Module to a Newer Version to upgrade Teamcenter Connector to V 2406.0.0. Teamcenter Connector V 2406.0.0 has updated domain model that made certain entities and associations in Teamcenter Extension V 1.0.0 redundant. As a result, you get errors after the upgrade.

  5. To resolve the errors, use one of the solutions described the sections below:

    • Solution 1

    • Solution 2 – Using Solution 2 has an advantage: after completing the procedure, the integrations will appear on the History tab.

4.1 Resolving the Errors – Solution 1

Follow the instructions in the table below:

Error message How to Solve the Error
TeamcenterToolkit.BOMWindow no longer exists
  1. Update all references to
    TcConnector.BOMWindow.
  2. Search for TeamcenterToolkit.BOMWindow to find BOMapping parameters where the entity is used, and change it to TcConnector.BOMWindow.
TeamcenterToolkit.top_line no longer exists Update all associations to TcConnector.top_line.
The selected Java action parameter […] no longer exists Set all the Java action parameters again.

4.2 Resolving the Errors – Solution 2

As an alternative to solution 1, you can perform the following steps:

  1. Delete the microflows generated with Teamcenter Extension V 1.0.0. This will cause errors in the locations where these microflows were used. Keep these errors so that you can identify where the microflows need to be implemented again.
  2. Go to Teamcenter Extension V 2.0.0 and repeat the steps you did before in Teamcenter Extension V 1.0.0. Simply select the same entities and associations, as they already exist in your domain model.
  3. Go over the errors caused by the missing microflows and implement the newly-generated microflows.