Subscription defined in extension doesn't work
- February 14, 2019
- 2 replies
- 3022 views
Hi,
I created a extension according to the tutorial, https://developer.thingworx.com/en/resources/guides/eclipse-plugin-thingworx-extension-development-tutorial.
Most of the functions works , except the subscription. The event "BadWeather" is raised(the application log confirms it) , but subscription is NOT triggered.
Could you help ? I attached the java source code and the extension file , as well as the log files.
================update======================================
I changed the method this.dispatchEvent(event); to this.fireEvent(eventDefinition, DateTime.now(), eventData); , then I found the application log shows that the event handler is triggered .
However, the event handler/subscriber requires the signature "InfoTable" which doesn't match the data type of eventData of fireEvent, which is "ValueCollection". So the workaround still cannot work.
Thingworx version: 8.3.4
Regards,
Sean

