Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you don't have access to an external DB

It's easier to use Talend to extract data (you need to know at least the data structure of the DB) and send these data to OFBiz with xml-rpc

  1. Connect Talend to the external DB
  2. For each row, prepare the data (doing transformations, joins with other tables, call web services to get ISO codes)
  3. Call an ofbiz service to create the data in OFBiz DB (like create product)

...

  • have data in files that can be loaded

Use the Entity xml data resource 

...

  1. By entity XML import reader : on your component indicate to load your files by with ext reader. When you want load your data, run ./ant load-ext from your OFBIz home directory.
    For instance in your component/ofbiz-component.xml:

    Code Block
    languagexml
        <entity-resource type="data" reader-name="ext" loader="main" location="data/MyImportData.xml"/>
    1.  See  How to preparing data for more information.
  2. Directly from webtools  in OFBiz, go to 

    1. https://localhost:8443/webtools/control/entityImport to load file by file or copy/paste text

    2. https://localhost:8443/webtools/control/EntityImportDir to load a directory content

  3. Call the OFBiz service importEntityFileDirectory if you have an automation process

Use the OFBiz's Data File Tools to import your cvs file in

...