Skip to main content
ozclkonur
14-Alexandrite
September 15, 2026
Question

Potential compatibility issues upgrading custom WRS (import.js) from Windchill 12.1 to 13.0 (Nashorn & Olingo 5.0)

  • September 15, 2026
  • 2 replies
  • 60 views

Hi everyone,

We have a highly customized Windchill REST Services (WRS) endpoint functioning perfectly in Windchill 12.1. We developed this using a custom domain setup with import.json and a complex import.js file for an unbound function.

Inside our import.js, we heavily rely on the Nashorn engine using Java.type(...) to access core Windchill APIs. For example, we dynamically call wt.session.SessionHelper.getPrincipal() and com.ptc.projectmanagement.assignment.AssignmentHelper to fetch and manipulate user resource assignments directly from the JS context.

We are currently planning an upgrade to Windchill 13.0. I noticed in the release notes that the WRS framework in WC 13 has been updated to support Java 17, OpenJDK Nashorn, Tomcat 10, and Olingo 5.0.

My questions for those who have migrated to Windchill 13: 1. Are there any known syntax or runtime compatibility issues with the new OpenJDK Nashorn engine when making heavy Java.type() calls to WC core classes compared to the standard Nashorn engine in 12.1? 2. Does the shift to Olingo 5.0 or Java 17 introduce any breaking changes for custom JSON string responses or OData parameter parsing in JS? 3. What is the recommended way or best practice to debug these custom import.js scripts during the WC 13 upgrade process?

Any insights or shared experiences would be highly appreciated. Thanks in advance!

2 replies

Catalina
Community Moderator
September 23, 2026

Hi ​@ozclkonur 
 
Thank you for your question.  
 
Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help. 
 
Also, feel free to add any additional information you think might be relevant.

Thanks, 

Catalina | PTC Community Moderator
HelesicPetr
22-Sapphire II
September 25, 2026

Hi ​@ozclkonur 

My recommendation is:

Install the new version environment and

apply your customization with new java version.

During a code compilation you will find the issues with not compatible Windchill API.

There are some changes in Windchill NO supported API 

 

I usually write all code in java. I use the custom.js (in your case import.js) just to forward the needed parameters to my java code and all work is done in the java. 

 

PetrH