simple-method iterate: question about transactions, updating (store-value)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

simple-method iterate: question about transactions, updating (store-value)

Vince Clark
I am integrating with another system to pull in new customer records on a nightly basis. Two questions:

I want new customers to be committed to the OFBiz database with each iteration, not waiting until the entire list has iterated before committing all the new customers. If I run into an error with a record I want to write it to a log file or database table and keep going. So one bad record shouldn't disrupt the entire batch.

Next, with each successful pass thru the iterator I want to update that customer record on the other system. The customer table in that system has a flag that is set when the import is successful. My question is that using <store-value> seems to update the entire record. Is there a way to just do an update of a single field?


Vince Clark
[hidden email]
(303) 493-6723