Migrating to Teamcenter Connector 2606
Introduction
Teamcenter Connector 2606 contains both the Teamcenter Connector and the Teamcenter Extension. From this version onwards, the Teamcenter Extension does not need to be downloaded separately. If you have an existing app using Teamcenter Connector 2512 and the Teamcenter Extension v4.x, you can migrate to version 2606.
This migration involves some breaking changes, but they are outweighed by the benefits:
- Unified module
- Modern Extension framework
- Improved security
- Better error handling
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 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.0.0 to 2512.0.0.
- 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.
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.
-
Move the Toolkit contents to the TcConnector module.
- Remove the old TcConnector module from your project, and ignore the errors for now.
- Rename the old TeamcenterToolkit module to TcConnector module, then remove the TeamcenterToolkit module. By doing this, the old Toolkit references in the project are now pointing to the TcConnector module.
This step does not change the BOMapping. This is fixed in a later step.
-
Import the new connector.
- Remove the TeamcenterExtension module under add-ons, as the old extension is not compatible with version 2606 of the Teamcenter Connector.
- Download the Teamcenter Connector 2606 from Mendix Marketplace. This now also contains the new version of the extension.
The Teamcenter Extension is no longer included in Extensions. It is available as a new Service Document, similar to a microflow. You can find it by right-clicking the module, selecting Add other, then selecting Teamcenter service.
-
Resolve breaking changes.
-
Studio Pro displays errors where your microflows or domain model reference things that have changed. Work through these systematically.
The most common issues you will encounter are:
- Errors in microflows that were generated by the Teamcenter Extension can best be recreated by the new version of the extension. Refer to step 9 for details.
- Missing microflows/Java actions can be found in the Deprecated Microflows and Their Replacements and Deprecated Java Actions and Their Replacements tables.
- References to
TeamcenterToolkit.*— Change these toTcConnector.*, because Toolkit was merged into TcConnector. - References to
FileType— Change these toNamedReference. - Microflows that handle the Boolean return value from
Login— Remove this handling, asLoginnow throws an exception instead. - Refer to Breaking Changes on this page.
-
-
Update security.
- Click Update Security in Studio Pro.
- 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.
-
Enable the React client.
- In your App Settings, go to the Runtime tab.
- Select Yes next to Use React client.
-
Create a Teamcenter Service Document.
- In the module where your Teamcenter integrations live, right-click and select Add others, then click 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 log 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 Extension to take advantage of improvements and ensure compatibility with the new connector. To do that, follow these steps:
- In the Service Document, click +Add integration and start 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 History tab to create variations of an integration without reconfiguring from scratch.
-
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, such as invalid search criteria.
- If you have automated tests, run them to ensure integration behavior is correct.
Breaking Changes
This is a comprehensive table of breaking changes and actions to take for each one:
| Area | Change | Action required |
|---|---|---|
| Teamcenter Toolkit 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 |
Automatically Migrated Items
Not everything needs to be rebuilt from scratch. These items are automatically migrated as they are:
- 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.