This seems a good way to me.
You might be interested to look at more convoluted cases but not necessarily
https://cwiki.apache.org/confluence/display/OFBIZ/Sync+Setup+Notes+and+ExampleJacques
iwolf wrote:
> Hi everybody,
>
> I am looking for a way to use the stock information from an external system
> (from a supplier) used for the ecommerce application.
>
> The information I get as a file:
>
> product_id, stock_count (current stock quantitiy in the external facility)
>
> From my current understanding of ofbiz I would do it this way:
>
> 1) Create external system as facility (supplier).
> 2) Creating a service that turns the external stock information into a XML
> import file (inventory_item) - with a predefined- for each product static -
> inventory_item_id. This gives me the possibilty to overwrite an existing
> inventory item within that facility.
>
> My question is: am I going the right way or did I overlook something.
>
> Any comment would be appreciated.
>
> Thanks
> Ingo