Openbravo Issue Tracking System - Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0058201 | Modules | Openbravo Business API | public | 2025-03-11 12:48 | 2025-03-11 17:14 |
Reporter | caristu | ||||
Assigned To | caristu | ||||
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | open | ||||
Regression date | |||||
Regression introduced by commit | |||||
Regression level | |||||
Review Assigned To | |||||
Support ticket | |||||
OBNetwork customer | No | ||||
Regression introduced in release | |||||
Summary | 0058201: Support triggering Push API events from DAL observers for newly created records | ||||
Description | Currently is not supported to trigger Push API event from a DAL observer (event handler) for newly created records | ||||
Steps To Reproduce | 1) Create a DAL observer, i.e., a class extending EntityPersistenceEventObserver with a method to be executed when a new record is created 2) Implement the method by triggering a Push API event: onSave(@Observes EntityNewEvent event) { ... if (!isValidEvent(event)) { return; } final BaseOBObject bob = (BaseOBObject) event.getTargetInstance(); SynchronizationEvent.getInstance().triggerEvent("TEST_Event", bob.getId()); } 3) Create an event subscription for the Push API event triggered by the observer 4) Create a new record so the new observer is executed. Note that no event is eventually sent. | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2025-03-11 12:48 | caristu | New Issue | |||
2025-03-11 12:48 | caristu | Assigned To | => caristu | ||
2025-03-11 12:48 | caristu | OBNetwork customer | => No | ||
2025-03-11 13:20 | hgbot | Merge Request Status | => open | ||
2025-03-11 13:20 | hgbot | Note Added: 0176666 | |||
2025-03-11 17:14 | hgbot | Note Added: 0176681 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|