Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0021391
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Dunning Lettersmajorhave not tried2012-08-20 14:182012-08-30 10:13
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version1.0.4
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version1.0.4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0021391: Dunning work flow gives error on OBContext handling and starts work flow in same thread

DescriptionThe dunning work flow does not correctly set the OBContext resulting in a NPE. The process implementation should extend DalBaseProcess.

The work flows are started in the same thread as the start work flow thread itself. This results in clashes on thread variables such as the hibernate session. The work flow should start in a separate thread.
Steps To Reproduce.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0051380)
mtaal (manager)
2012-08-20 14:18

.
(0051381)
mtaal (manager)
2012-08-20 14:18

resolved
(0051382)
mtaal (manager)
2012-08-20 14:20

Note to test/reproduce:
install the activiti and dunning modules.
install the dunning data through enterprise module management
set the dunning policy for a business partner
Create sales invoices (for that business partner) with a payment due date of a few days back (not more than 5 days late). Note that the sales invoice often have a payment term of 30 days, so the invoice due date should be set to 31-35 days before today to test this feature
Create a process request for the 'start dunning work flow'
Run it
Go to the Payment in plan and check the dunning log for the payment schedules of the created invoices.
(0051383)
hgbot (developer)
2012-08-20 14:28

Repository: erp/pmods/org.openbravo.financial.dunningletters
Changeset: 34ad3eca0a3d670270a7462c2cad5f7fd67faeb4
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Aug 20 14:28:26 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.financial.dunningletters/rev/34ad3eca0a3d670270a7462c2cad5f7fd67faeb4 [^]

Related to issue 21391: Dunning work flow gives error on OBContext handling and starts work flow in same thread
Transaction handling is already done by base dalprocess, let it be done there

---
M src/org/openbravo/financial/dunningletters/StartDunningWorkFlowProcess.java
---

- Issue History
Date Modified Username Field Change
2012-08-20 14:18 mtaal New Issue
2012-08-20 14:18 mtaal Assigned To => mtaal
2012-08-20 14:18 mtaal Status new => scheduled
2012-08-20 14:18 mtaal Note Added: 0051380
2012-08-20 14:18 mtaal fix_in_branch => pi
2012-08-20 14:18 mtaal Note Added: 0051381
2012-08-20 14:18 mtaal Status scheduled => resolved
2012-08-20 14:18 mtaal Fixed in Version => 1.0.4
2012-08-20 14:18 mtaal Resolution open => fixed
2012-08-20 14:20 mtaal Note Added: 0051382
2012-08-20 14:28 hgbot Checkin
2012-08-20 14:28 hgbot Note Added: 0051383
2012-08-30 10:13 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker