Dear Len,
Yes, I'm having something similar as Tri Vssic.
I started with a clean install : OOTB OFbiz 12.04.01, Bigfish 1.11 zip and
Fashion demo just downloaded, empty database.
1/ When I click on Apparel Active, I can't see the PLP and have the
following groovy errors :
Error running
hey guys, I have the following question (maybe groovy basics)...:
I do read a csv file with opencsv, so I get it line by line within a while
loop. Within this loop I call a simple method service to store selected data
from each line in database. With that I thought not to overload my memory,
In my experience there is a reason why most of the erp provide such long
tasks as jobs. Because, if it is a long task then it is better to do in
separate async jobs (else you might get a browser timeout ).
My suggestion is to make this as a service with a long timeout and run it
as a job.
On Tue,
ha, that was fast :)
I see and this sounds reasonable. But on the otherhand I can change the
timeout for the browser, and 10.000 lines is not that much in my opinion.
The transaction stops after 2.5 minutes.
Or do you have a hint, how I can change the groovy code to a job? btw. what
is the
Yes, you are right, scheduled service is a job. Considering Adrian's
suggestion you should keep a low transaction timeout for exampleService and
use-transaction=false for the groovy running this service.
Groovy files can be used as ofbiz service. You need to prepare a map and
put your OUT param
Hey david, also thank you for the fast answer.
How can I handle that with my situation?
I heard from you about -- use-transaction=false
and from another thread sth. like: -- require-new-transaction=true.
so I understand it like my situation uses one single transaction what in my
eyes is not
ok now I used require-new-transaction=true within the service declaration
in services.xml. This seems to work. It imports all data (all rows are
proceeded).
Attribute : require-new-transaction
If set to true and there is a transaction already in place the Service
Engine will suspend that
From: Robert G. g...@mercon24.de
ok now I used require-new-transaction=true within the service declaration
in services.xml. This seems to work. It imports all data (all rows are
proceeded).
Attribute : require-new-transaction
If set to true and there is a transaction already in place the