Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hello colleagues,
I'm new to Thingworks platform and I want to deploy my own small IoT solution. I also want to make it available in marketplace, but I did not found here any tutorials on how to create extensions and prepare them for marketplace. Could someone point me to this information?
Andrey , You can Follow ThingWorx Extension Development guide to quickly have some hands-on Extension Development.
I would suggest using the Eclipse Plugin for ThingWorx Extension Development.
Since , I am not sure if you are authorized to use that Extension Development guide (I will cross check and will let you know ).
However , I am giving you some quick notes and steps , of getting started with Thingworx Extension development.
************************************************************************************************************************************************************************
ThingWorx Extension
An extension is a collection of entities, resources, and widgets that is used to
extend the functionality of the ThingWorx Platform. This collection is packaged
into a .zip file, which can be imported to any ThingWorx Platform and is used to
expose new functionality (such as email servers).
Reasons to build Extensions
If you think , you have the following few reasons in mind , then you can go building ThingWorx Extension.
Creating Extensions
You can create ThingWorx extensions using common editors and development
tools, as long as the artifacts are created following the expected convention and
are packaged in the expected structure
Because it can be challenging to correctly build the various pieces of an
extension, the Eclipse Plugin for ThingWorx Extension Development (Eclipse
Plugin) has been created to help developers build extensions quickly and
concentrate on developing their features rather than worrying about getting the
extension structured correctly. The productivity improvements provided by the
Eclipse Plugin make it a compelling tool to use when building ThingWorx
Installing the Eclipse Plugin for ThingWorx Extension Development
To install the plugin for ThingWorx Extension Development into your local
instance of the Eclipse IDE for Java EE Developers, Mars 4.5 release or newer, do
the following:
Creating an Extension Project
To get started using the Eclipse Plugin for ThingWorx Extension Development, do
the following:
Extension Project, and click Next.
Extension-SDK-[version]-latest.zip file.
information, see Building the Extension.
The project appears in the Package Explorer, and you are now working in the
ThingWorx Extension perspective.
in the Package Explorer and choose Properties.
On the Properties screen under the ThingWorx Extension menu, you can enter
a list of extensions on which your extension depends and their versions in the
Depends On Extensions field. For example, abcextension:
Importing Existing Extensions
To import an existing extension into the plugin, do the following:
so, choose Window ▶ Perspective ▶ Open Perspective ▶ ThingWorx Extension.
[version]–latest.zip file and click Finish.
Your project appears in the Package Explorer.
Creating Entities
want to create.
The aspects will be different for each entity type.
The Java source file is created for you in the specified package and the
Adding Services, Properties,
Configuration Tables, Subscriptions, and
Events
To add services, properties, and other annotations to an entity, do the following:
Source menu.
OR
In the Java editor of the entity, right-click to access the ThingWorx Source
From the submenu, you can choose to add a service, property, configuration
table, subscription, or event.
The Java and metadata.xml files are updated with the necessary annotations
and XML elements.
Creating Widgets
A new folder under the /ui folder is created and contains the JavaScript and
CSS files for the widget. The metadata.xml file is updated automatically.
Hi Andrey,
You can use eclipse plugin to develop your own ThingWorx Extension.
Please refer to the following link: http://marketplace.thingworx.com/Items/eclipse-plugin-for-thingworx-extensions
Once you have created your extension; it will be evaluated by ThingWorx Marketplace Team. You would be required some documentation too and some other formalities. I will check detail how to reach out to them and what all details are required.
Meanwhile you can start with your extension creation step.
Thanks,
Ankit Gupta
Andrey,
ThingWorx just released a tutorial ("Create Extensions Using Eclipse") on the Developer Portal (developer.thingworx.com). This tutorial walks you through creating an extension.
Andrey,
As Jeff pointed out, the Developer Portal includes a step-by-step tutorial to create your extension using the ThingWorx Eclipse Plugin for Extension Development. Go to Developer Portal -> Create-> Create a ThingWorx Extension.
The walk through guide walks you through installation to creating your own "Weather Application".
You can checkout the guide here.