Migrating to Teamcenter Connector 2606
Introduction
Teamcenter Connector 2606.0.0 introduces major changes and improvements, some of them breaking. This document provides an overview of these breaking changes and guides you through the upgrade path.
One of the main changes is that the Teamcenter Connector 2606 combines the Teamcenter Connector and the Teamcenter Extension, which was previously available through a separate Marketplace module.
The changes fall into three categories:
- Changes to the
TcConnectormodule. These include improved security, error handling, and deprecations. - Merging of the
TeamcenterToolkitdomain model, microflows, and Java actions, which were previously part of the Teamcenter Extension, into theTcConnector. - Introduction of the Teamcenter service document, a new Mendix Studio Pro document which allows you to create, manage, and organize your Teamcenter integrations.
The migration to 2606 involves some breaking changes, but they are outweighed by the benefits:
- Unified module
- Modern extension framework
- Improved security
- Better error handling
Migration Scenarios
There are three migration scenarios:
- Upgrade the Teamcenter Connector from 2512 to 2606 – read the pre-migration checklist and follow the steps in the Teamcenter Connector Migration Process section.
- Upgrade the Teamcenter Connector from 2512 to 2606 and keep the original integrations (Teamcenter Extension) – read the pre-migration checklist and follow the steps in the Teamcenter Connector Migration Process and Teamcenter Toolkit Migration Process sections.
- Upgrade the Teamcenter Connector from 2512 to 2606 and migrate the original integrations to the new Teamcenter service document – read the pre-migration checklist and follow the steps in the Teamcenter Connector Migration Process and Migrating to a Teamcenter Service Document sections.
Pre-Migration Checklist
Follow these steps carefully to avoid issues:
- Upgrade to Studio Pro 11.12.1 or above. If you are using Studio Pro 10, you must upgrade before importing Teamcenter 2606.
- Have only one developer perform the migration. If multiple developers migrate simultaneously, there will be duplicate artifacts. Coordinate with your team and designate one person to handle the migration, then have others pull the updated code from version control.
- Migrate from Teamcenter Connector 2512. If the project still contains an older version of the Teamcenter Connector, such as 2506 or older, first follow the steps for Upgrading Teamcenter Connector 2506.x to 2512.x.
- Make a backup. Before starting, either create a full backup of your app or commit all current changes to version control. This gives you a safety net in case you need to roll back.
Teamcenter Connector Migration Process
Follow these steps in this exact order to ensure a proper migration:
-
Prepare your environment.
- Open your app in Studio Pro 11.12.1 or above.
- Make sure all changes are committed, if using version control, or backed up.
-
Remove the resource files.
In your Resources folder, remove the OperationMapping, TeamcenterCommon, TeamcenterConnector folders. The contents of these folders are now in the TcConnector folder. -
Import Teamcenter Connector 2606.
Download the Teamcenter Connector 2606 from Mendix Marketplace. This now also contains the new version of the extension.The Teamcenter Extension is no longer found under the Extensions menu at the top. Instead, it is available as a new service document, similar to a microflow. You can find it by right-clicking a module in your project, selecting Add other, then selecting Teamcenter service. -
Resolve breaking changes.
- For a list of deprecated microflows and Java actions, refer to Deprecated Microflows and Their Replacements and Deprecated Java Actions and Their Replacements.
- Deprecated microflows and Java actions are available in the internal > deprecated folder in the TcConnector module. These microflows are no longer used by the connector, but you can include them and move them to your own module if required.
- Change all
FileTypereferences toNamedReference. - The Login microflow no longer returns a Boolean value. Login now throws an exception whenever it is unsuccessful.
- Microflows that use the
TcSessionentity are deprecated. Do not use theTcSessionentity in your code. If you want to know if someone is logged in, useRULE_TeamcenterConfiguration_IsLoggedIninstead. - For more information, refer to the Breaking Changes section.
-
Update security.
- Click Update Security in the domain model of the implementing module. This synchronizes the changes coming from
TcConnector. - Make sure that all attributes on persistent entities have read rights. The Administrator role now only has access to Teamcenter Configuration, so assign the User role to module roles that need entity access.
- Click Update Security in the domain model of the implementing module. This synchronizes the changes coming from
-
Enable the React client.
- In your App Settings, go to the Runtime tab.
- Select Yes next to Use React client.
Teamcenter Toolkit Migration Process
You can keep the original integrations using both the TeamcenterToolkit module and the Teamcenter Connector 2606 module. Since the TeamcenterToolkit module and the TcConnector module are merged, there are some minor errors that need to be solved in the model. These mainly involve the BOMLine entity. Follow these steps:
-
In the
TeamcenterToolkitmodule, remove theBOMLineentity and start using theBOMLineentity in theTcConnectormodule.
An easy way to migrate a large number of references is to follow this process:- Rename the
BOMLineitem inTeamcenterToolkittoBOMLine2. - Move
BOMLine2to theTcConnectormodule. - Remove
BOMLine2. - Rename the
BOMLineitem in theTcConnectormodule toBOMLine2, then back toBOMLine. - Repeat the process for associations.
- Rename the
-
Map the old
TeamcenterToolkit.BOMLineBO mappings toTcConnector.BOMLine. Follow these steps to do that:- Use Ctrl+F to search for
TeamcenterToolkit.BOMLine. This allows you to see if there are any BO mappings left that reference theTeamcenterToolkit. - Replace any remaining references with
TcConnector.BOMLine.
- Use Ctrl+F to search for
-
Verify that everything still works correctly.
Migrating to a Teamcenter Service Document
-
Create a Teamcenter service document.
- In the module where your Teamcenter integrations are stored, right-click and select Add others, then select Teamcenter service.
- Give it a name.
-
Reconfigure your connection.
- Open the Teamcenter service document and go to the Settings tab.
- Enter your Teamcenter URL and authentication settings.
- Click Sign In and sign in to Teamcenter.
-
Recreate your integrations.
Your existing domain model entities and microflows are still in your app. However, you need to regenerate them using the new Teamcenter service document to take advantage of the improvements and ensure compatibility with the new connector. To do that, follow these steps:
- In the Teamcenter service, click +Add integration and select a journey that matches each of your existing integrations.
- Configure the integration the same way as before. The journey types and options are the same.
- Click Generate to save and generate the integration.
- Replace the old microflows with the newly generated microflows.
- You can use the Duplicate feature on the Integrations tab to create variations of an integration without reconfiguring them from scratch.
-
Remove the
TeamcenterToolkitmodule from your project.- Before removing the
TeamcenterToolkitmodule, commit your work. - Make sure that the
TeamcenterToolkitis not used anymore by right-clicking on theTeamcenterToolkitmodule and selecting Find usages of this module. - Remove the
TeamcenterToolkitmodule.If there are still many resources pointing to theTeamcenterToolkit, you can rename theTeamcenterToolkittoTcConnector2, remove theTcConnector2, rename theTcConnectortoTcConnector2and back toTcConnector. This trick connects the old resources in theTeamcenterToolkitto the new ones in theTcConnector. - Since the
TeamcenterToolkitmodule is merged with theTcConnectormodule, all references to theTeamcenterToolkitshould point to theTcConnector. Use Ctrl+F to search for "TeamcenterToolkit.", and identify any remaining BO mappings that reference theTeamcenterToolkit. If there are any, replace them withTcConnector. - Once all the journeys are migrated, you can remove the TeamcenterExtension folder from your project's resources folder on the disk.
- Remove the
TeamcenterExtensionmodule under Add-ons. This is the older Teamcenter Extension which is no longer needed since you are using the Teamcenter service document.
- Before removing the
-
Test thoroughly.
- Run each generated microflow against your Teamcenter instance.
- Verify that search, create, update, and retrieval operations work as expected.
- Test error handling by triggering error conditions (for example, invalid search criteria).
- If you have automated tests, run them to ensure integration behavior is correct.
Breaking Changes
The following table lists the breaking changes and the action required for each one:
| Area | Change | Action required |
|---|---|---|
TeamcenterToolkit Module |
The module was merged into TcConnector. The module no longer exists. |
Update all references from TeamcenterToolkit.* to TcConnector.*. |
| Entity security | The Create and Delete rights were removed from all entities. |
Remove any UI or microflow logic that relied on client-side Create/Delete. Use microflows instead. |
Input parameter ConfigName renamed to ConfigurationName |
In generated microflows, the input parameter is now called ConfigurationName and is optional. |
Set the ConfigurationName or leave it empty. |
| Admin role | The Administrator no longer has entity access. | Assign the User role where needed. |
FileType / File Type |
This was renamed to NamedReference / Named Reference. |
Update all references in microflows and mappings. |
CreateBOMWindow_Generic |
This was moved to TcConnector, and was updated to use CreateOrReconfigureBOMWindows. Pre-configured variants were removed. |
Regenerate BOM microflows via the Extension or update manually to use TcConnector.CreateBOMWindow_Generic. |
Login Java action |
No longer returns Boolean. Throws exception on failure. | Remove Boolean result handling and wrap in error handler. |
Logout Java action |
Now returns Boolean. | Update callers if return value was previously ignored. |
| Error messages | Connector no longer shows in-app messages. It throws exceptions instead. | Ensure calling microflows have error handlers. |
Deprecated Microflows and Their Replacements
These microflows still exist in the deprecated folder, but should no longer be used. Replace them with the recommended alternatives:
| Deprecated | Replacement |
|---|---|
AreMultipleTcConfigActive |
No replacement |
CloseBOMWindow |
BOMWindow_Close |
DownloadFile |
DownloadFile / DownloadImage Java action |
ExecuteLogin |
Login microflow |
ExecuteLogout |
Logout microflow |
HandleActiveConfigErrors |
No replacement |
HandleServiceErrors |
No replacement |
RetrieveConfigNameFromSingleActiveConfiguration |
Use empty for the configurationName parameter in Java actions. Java actions now handle active configuration in the Java code. |
RetrieveHttpHeaderList |
No replacement |
RetrieveTcSessionBasedOnConfigName |
No replacement. TcSession should not be manually consumed. It is automatically handled by the TcConnector module. |
RetrieveTeamcenterConifgurationByName |
Use empty for the configurationName parameter in Java actions. Java actions now handle active configuration in the Java code. |
RetrieveTeamcenterConifgurationFromTcSession |
No replacement. TcSession should not be manually consumed. It is automatically handled by the TcConnector module. |
ShowPartialErrors |
No replacement |
UpdateSession |
No replacement |
Deprecated Java Actions and Their Replacements
These Java actions still exist in the deprecated folder, but should no longer be used. Replace them with the recommended alternatives:
| Java Action | Replacement |
|---|---|
PerformAction |
PerformAction3 |
GetWorkflowTemplates |
GetWorkflowTemplates2 |
CreateBOMWindows |
CreateOrReConfigureBOMWindows |
CreateBOMWindows2 |
CreateOrReConfigureBOMWindows |
WhereUsed |
WhereUsed2 |
ExpandPSOneLevel |
ExpandPSOneLevel2 |
GetTcSessionInfo |
GetTcSessionInformation |
GetItemFromId |
GetItemAndRelatedObjects |
RetrieveCookie |
No replacement |
Deprecated Entities
The following entities have been deprecated. To indicate this, the entities have been renamed with an underscore prefix:
CreateBomWindowInputCreateBomWindowInput_CreateBomWindowResponseCreateBomWindowResponseExpandPSOneLevelResponseGetItemFromIdInputGetItemFromIdResponseGetWorkflowTemplatesInputItemRevisionOutputRevisionIDsSessionUserTcServerInfoWhereUsedInputWhereUsedResponseInfo
Automatically Migrated Items
The following items are automatically migrated and do not need to be rebuilt:
- Domain model – Entities and associations generated by the previous Extension remain in your module. They are part of your app, so they do not disappear during the migration.
- Microflows – Generated microflows remain in your app. Only those affected by specific breaking changes, such as input entity naming or Toolkit module references, need to be regenerated or updated.