|
From: Walter, S. <Ste...@im...> - 2019-04-24 06:44:13
|
Hello André,
in which application are you doing this – Kernel, Kernel Control Center or Plant Overview?
You mention the onEvent() method. Is your EventHandler implementation subscribed to the application’s event source? (Inject a “@ApplicationEventBus EventSource eventSource” and use it to subscribe in the appropriate place. See the StatisticsCollector or ResourceAllocationPanel classes for examples.)
Best regards,
Stefan
Von: André Tibola <an...@sp...>
Gesendet: Montag, 15. April 2019 21:47
An: ope...@li...
Betreff: [opentcs-discuss] Catch events with EventHandler interface
Hello!!
I'm creating a feature for my app in which I need to catch any events involving vehicles and transport orders. To do so, I relied on the example at TransportOrdersContainerPanel class and the DefaultVehicleController class (onEvent method). However, I noticed that, no matter what I'd do, no event would be caught. It's important to say that this feature was created using the plugin panels interface provided by the plant overview then, my guess would be that's the reason why I can't get any of the events.
Any help would be appreciated!!
Thanks
[https://drive.google.com/uc?id=1JgjqP2XHCtNnJNMWADatgeU_Q4Ae3ZU_&export=download]
André Tibola | Desenvolvedor de Sistemas
an...@sp...<mailto:an...@sp...>
Spark
(54) 3242-4507
Rua Antônio Peruzzo, 250 – Sagrada Família
Nova Prata/RS CEP 95320-000
www.sparkag.com.br<http://www.sparkag.com.br/>
Esta mensagem é para uso exclusivo de seu(s) destinatário(s), podendo conter informações privilegiadas e confidenciais. Qualquer
revisão, uso, divulgação ou distribuição não autorizada, é proibida.
Se você não for o destinatário, favor nos informar imediatamente e destruir esta mensagem incluindo todas as suas cópias.
|