PTC Navigate Thingworx based App Development Preeti Gupta
PTC Navigate & Thingworx based App Development Preeti Gupta
Agenda • Thingworx Platform & Windchill Extension for Thingworx • Development • Windchill Web. Services • Thingworx Service • Mashup Development • Documentation • Deployment • PTC Navigate • Project Planning Tips
Thingworx Platform • Modeling • Object Oriented approach( Java based platform ) • Thing. Shape (Interface) , Thing. Template (Abstract Class), Thing (Class / Object) • User Interface • Very rich and Modern looking • Rapid application development environment • Graphic application builder
Why Develop Windchill Apps in Thingworx • Much shorter development time ( PTC out of the box Restful Web service Infrastructure ) • Mobile applications • Modern architecture to integrate with business systems.
How to Get Started • Software • Thingworx platform • PTC Windchill Extension (Thingworx Marketplace or PTC S/W site) • Windchill Patch for Thingworx Integration • Connect Thingworx Platform with Windchill • Both can exist in same environment ( Development environment)
Out of the box Windchill Integration with Thingworx Platform PTC Windchill PLM Extension 11. 0 -M 010 WCTWXExtension_05 Thingworx Platform (Latest 7. 2) Windchill Environment (Support for 10. 1 M 040, 10. 2, 11)
Installing Windchill Extension • Import Windchill Extension • Import Sample Mashups
Windchill Extension • PTC-Windchill-Demo-Thing extends Windchill Connector • Click on Configuration to connect to Windchill -Windchill Side Trusted. Host for Development Environment
Windchill Connector
Environments • Development Environment • Windchill users have to exist in Thingworx in development environments (wt. auth. trusted. Hosts ) • Production Environment • SSL • Single Sign On
Ways to communicate to Windchill in Thingworx • RESTful End Point • Infoengine / SOAP based Webservices
Accessing Out of the box Restful Services via Swagger • Enable Site Preference -> Client Customization set to yes.
Example of Out of the Box Restful Web Service • Access and Test it via Swagger UI. ( Enable Customization in the Site > Preferences) • Create a service in ptc-Windchill-Demo-Thing which will be calling Rest Endpoint in Windchill. • Once service is tested. We create Mashup to visualize the content.
Windchill Data Visualization in Thingworx 2 1 Test RESTful Service in Swagger Create a service in PTCWindchill-Demo. Thing to access RESTEnd. Point 3 Visualize the data in the Mashup Windchill Thingworx
Step 1 -Testing in Windchill Swagger UI
In Thingworx Composer • Write a test service in PTC-Windchill-Demo Thing
Visualizing in Mashup
Writing your Own RESTful Web Service • PTC does not support adding your own RESTful web service in Windchill • Deployment Requirements • Java Class file deployment • Site. xconf changes • Why Rest? Windchill JAVA Web. Service Resource ( RESTEasy Framework) Register RESTFul Webservice resource in Rest. properties REST Endpoint Available in Windchill Swagger – Modern architecture. Built using server side Windchill Java API – Easy to debug and maintain – Payloads are JSON that are easy to parse in web clients – One Web Service can provide various resources vs several info. Engine calls to fetch the same information Thingworx Call REST Endpoints in Thingworx using Process. JSONRequest service of Windchill Connector
Few Examples of custom Restful Web Services in Swagger
PTC Navigate View PLM Extension on Thingworx Platform -PTC Windchill Extension - Thingworx Utilities - PTC View Extension Thingworx Platform (Latest 7. 2) 11. 0 -M 010 WCTWXExtension_05 Windchill Environment (Support for 10. 1 M 040, 10. 2, 11)
Adding Custom App In PTC Navigate
Example of Infoengine and RESTful Webservice
Documents & Training • PTC University courses for Thingworx • Infotable Document for Thingworx • https: //community. thingworx. com/docs/DOC-2380
Project Planning Tips • Learning curve – Developing in Thingworx composer environment vs Thingworx extension • Skills Required • • Javascript RESTful Service Infoengine Soap in Windchill
Thank You Questions? Preeti_gupta 1@outlook. com Or find me on PTC Community
- Slides: 25