Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0038804 | Openbravo ERP | A. Platform | public | 2018-06-21 12:47 | 2019-10-22 16:30 | ||||||||||||||
Reporter | jarmendariz | ||||||||||||||||||
Assigned To | platform | ||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | caristu | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0038804: jobUnscheduled method in ProcessMonitor is never called | ||||||||||||||||||
Description | ProcessMonitor::jobUnscheduled() is never called when a job is unscheduled because the OB_GROUP is not used when creating Triggers at process schedule. This may affect other methods in ProcessMonitor as well. This issue is caused because when unscheduling a job, Quartz attempts to remove the trigger given the trigger and the group names, but trigger group is set as DEFAULT instead of OB_QUARTZ_GROUP so no deletion is performed and then the Scheduled listeners (ProcessMonitor) are not notified. | ||||||||||||||||||
Steps To Reproduce | - Put a breakpoint in the jobUnscheduledMethod of ProcessMonitor class. - Start tomcat in debug mode - Go to Process Request - Select an scheduled process - Press "Unschedule Process" button - Process should be unscheduled and the breakpoint is never reached. | ||||||||||||||||||
Proposed Solution | When a job is scheduled, it uses TriggerProvider:newInstance(String, ProcessBundle, ConnectionProvider) to create a new Trigger. The trigger group should be set using trigger.setGroup(OB_GROUP) for scheduled triggers (data.timingOption.equals(TIMING_OPTION_SCHEDULED). Then some testing should be performed to ensure no functionality is broken for this change and that all methods of ProcessMonitor are called. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2018-06-21 12:47 | jarmendariz | New Issue | |||||||||||||||||
2018-06-21 12:47 | jarmendariz | Assigned To | => platform | ||||||||||||||||
2018-06-21 12:47 | jarmendariz | Modules | => Core | ||||||||||||||||
2018-06-21 12:47 | jarmendariz | Triggers an Emergency Pack | => No | ||||||||||||||||
2018-06-21 12:51 | jarmendariz | Relationship added | related to 0038766 | ||||||||||||||||
2018-06-21 14:11 | jarmendariz | Note Added: 0105305 | |||||||||||||||||
2018-07-06 09:18 | alostale | Severity | major => minor | ||||||||||||||||
2018-07-06 09:18 | alostale | Status | new => acknowledged | ||||||||||||||||
2019-10-09 18:02 | caristu | Relationship added | related to 0041483 | ||||||||||||||||
2019-10-22 16:27 | caristu | Status | acknowledged => scheduled | ||||||||||||||||
2019-10-22 16:30 | caristu | Review Assigned To | => caristu | ||||||||||||||||
2019-10-22 16:30 | caristu | Note Added: 0115230 | |||||||||||||||||
2019-10-22 16:30 | caristu | Status | scheduled => closed | ||||||||||||||||
2019-10-22 16:30 | caristu | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|