410 likes | 573 Views
PTC Navigate & Thingworx based App Development. Preeti Gupta. Agenda. Thingworx Platform & Windchill Extension for Thingworx Development Windchill WebServices Thingworx Service Mashup Development Documentation Deployment PTC Navigate Project Planning Tips. Thingworx Platform.
E N D
PTC Navigate & Thingworx based App Development Preeti Gupta
Agenda • Thingworx Platform & Windchill Extension for Thingworx • Development • Windchill WebServices • Thingworx Service • Mashup Development • Documentation • Deployment • PTC Navigate • Project Planning Tips
Thingworx Platform • Modeling • Object Oriented approach( Java based platform ) • ThingShape (Interface) , ThingTemplate (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 Thingworx Platform (Latest 7.2) Windchill Environment (Support for 10.1 M040, 10.2, 11) PTC Windchill PLM Extension 11.0-M010-WCTWXExtension_05
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 TrustedHost for Development Environment
Environments • Development Environment • Windchill users have to exist in Thingworx in development environments (wt.auth.trustedHosts ) • 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 Thingworx Windchill 2 1 Create a service in PTC-Windchill-DemoThing to access RESTEndPoint Test RESTful Service in Swagger 3 Visualize the data in the Mashup
In Thingworx Composer • Write a test service in PTC-Windchill-Demo Thing
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? • 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 infoEngine calls to fetch the same information Windchill JAVA WebService Resource ( RESTEasy Framework) Register RESTFulWebservice resource in Rest.properties REST Endpoint Available in Windchill Swagger Thingworx Call REST Endpoints in Thingworx using ProcessJSONRequest service of Windchill Connector
PTC Navigate View PLM Extension on Thingworx Platform Thingworx Platform (Latest 7.2) Windchill Environment (Support for 10.1 M040, 10.2, 11) -PTC Windchill Extension - Thingworx Utilities - PTC View Extension 11.0-M010-WCTWXExtension_05
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_gupta1@outlook.com Or find me on PTC Community