ThingWorx Model Definition and Composer > Thing Templates > Remote Templates > Thing Presence > Thing Presence: Using ThingWorx Composer to Create a Custom ReportingStrategy Thing
  
Thing Presence: Using ThingWorx Composer to Create a Custom ReportingStrategy Thing
A ReportingStrategy is simply a Thing descending from the ReportingStrategy Thing Template, that override the ReportingAlgorithm service. You can create a custom strategy three ways: in Composer, in an extension (with a Java-backed Thing), or by importing XML.
To create a custom ReportingStrategy using ThingWorx Composer, follow the steps in this topic. To create the ReportingStrategy using an extension (Java-backed thing), see Thing Presence: Custom Reporting Strategy Created in Java with the ThingWorx Extension SDK.
To create a custom strategy in Composer, follow these steps:
1. Navigate to the Things panel in Composer, and click New.
2. Select a distinctive Name for your strategy.
3. Select ReportingStrategy as your Thing Template for this thing.
4. Implement your strategy:
a. Switch to the Services tab and click the Edit link to override the ReportingAlgorithm.
b. Write JavaScript that sets the result value, based on the appropriate business logic to evaluate the reporting status of your device.
5. If your strategy requires access to properties or services in the broader ThingWorx platform, navigate to the Configuration tab and set a RunAsUser. For details, see Thing Presence Reporting Strategy Things: Security Setup.