Building a ThingWorx Solution
The recommended workflow for building an IoT solution on ThingWorx platform is as follows:
1. Create a Projects.
2. Create Tags.
3. Create Thing Shapes to implement common or shared properties and services.
* 
PTC recommends that you use Thing Shapes to define the properties and services. If you define properties and services on a Thing Template, it is difficult to move their definitions to a Thing Shape.
4. Create Thing Templates that implement one or more Thing Shapes.
5. Decide how you will store data, for example, using Value Streams, Data Tables, and so on.
6. If general services for business logic are required, consider creating manager or helper things to consolidate the services.
7. If Thing Subscriptions logic is required, consider using a multi-events subscription in case the same logic is relevant to several events. If an order needs to be kept between subscription executions, use the Execute Events Sequentially capability, and use the dedicated JSON Object to store previous values between subscription executions.
8. Create the user interface for the solution in the The Mashup Builder Workspace.
9. Set up visibility and permissions for Visibility in Organizations, User Groups and Users.
10. Package your solution.
Path A: If you want to deploy your solution to other ThingWorx instances, package and publish it using Solution Central. Solution Central is a cloud-based portal that provides enterprise deployment assistance for your ThingWorx solutions. The Solution Central Help Center provides detailed instructions on packaging, publishing, and deploying a solution using Solution Central.
Path B: If you want to deploy your solution outside of ThingWorx, package it as an extension. If you have dependencies on other extensions, define them in the metadata of the extension. See the section Installing a ThingWorx Solutionto install the extension.
Was this helpful?