Cumulocity-IoT / c8y-adamos-hub-connector

Cumulocity IoT ADAMOS HUB Connector
Apache License 2.0
1 stars 1 forks source link

Provide mapping UI for C8Y -> Hub Events (outbound) #16

Closed haraldmeyer closed 1 year ago

haraldmeyer commented 2 years ago

UI currently only supports inbound (Hub Events -> C8Y): image

There should be another menu entry "Events to Hub" and a page to configure the mapping. At the moment C8Y to ADAMOS Hub event processing is implemented in the Hub Connector Backend in a fixed way:

In the future the mapping should be configurable. A user should be able to select:

See here for specification of ADAMOS Hub events: https://enablement.adamos.com/adamos-hub/fuer-entwickler/developer-handbook/event-service/?anchor=Event-definition

The microservice implementation here: https://github.com/SoftwareAG/c8y-adamos-hub-connector/blob/213e6499a24930ede4421272d68dbb96b241297f/ax-mm-hubconnector/src/main/java/com/adamos/hubconnector/services/EventRulesService.java#L118

needs to be extended to interpret the mapping rules and start separate listeners per mapping rule. Upon changes of mapping rules, the listeners should be updated. Listener logic should remain polling for the time being (change to Notification 2.0 is treated in #27). Probably best to have one repeated tasks that polls all "listeners".

hnaether-c8y commented 1 year ago

@haraldmeyer The list of fragments is optional I guess? The list of devices - should it contain all c8y devices of a tenant or just the devices which are connected with ADAMOS Hub?

haraldmeyer commented 1 year ago
hnaether-c8y commented 1 year ago

In progress. Created UI part. Continuing with MS part.