This content has been marked as final. Show 3 replies
After programmatically creating a
Thing(or any entity), you need to invoke two
RestartThing(). Once you enable and restart the
Thing, you are able to use it just as you would any
Thingcreated manually in Composer.
By the way, you'll want to make sure you are using proper error handling in
Things. For example, if your
Servicethrows an exception before the entire transaction is committed to the database, you'll wind up with "ghost"
Thingsthat can only be removed by restarting Tomcat.