Login  Register

Intelligent imports with a custom hook.

Posted by BJ Freeman on Jul 09, 2006; 3:39am
URL: http://ofbiz.116.s1.nabble.com/Intelligent-imports-with-a-custom-hook-tp169535.html

Though I have done this in a non-ofbiz way, I would like to open
discussion on intelligent imports.
Here is one scenario I use:
Each supplier is assigned a party ID.
under that the order email is placed.
This is so incoming emails from this supplier can be looked up under
their code.  the PartyID is a 3-5 letter code assigned by the client.
The this is a preference.
Then each supplier is given a Facility to deal with inventory.
The inventory is transfered per order.

some suppliers send daily inventory updates.
These are sent in various formats from tab delimited to csv.

so instead of brute force import, the file has to be parsed then
added/updated to the suppliers facility(ies). I have one supplier that
has 3 facilities so the inventory imported into each one.


Here is the framework I would like to see.
a Map is passed to a custom parser for that suppler and then is imported
  into the facility is was meant for. when calling  the service the
custom routine is passed in.


any thoughts.