Activity - xmlBulkLoad

Activity Type: XML

Description

Bulk load a set of XMLDB resources into a collection. XMLDB resources are XML documents which are stored within XMLDB collections (not to be confused with an XMLDB data resource itself or data service resources). The XMLDB resources can be provided by a client or produced via another activity.

Example

<xmlBulkLoad name="bulk">
  <collection createIfNotExists="true">
    newCollection
  </collection>
  <resourceSet>
    <resource>
      <resource1>Some Content</resource1>
    </resource>
    <resource>
      <resource2>Some Content</resource2>
    </resource>
  </resourceSet>
  <output name="outputStream"/>
</xmlBulkLoad>
<xmlBulkLoad name="bulk">
  <collection createIfNotExists="true">
    newCollection
  </collection>
  <fromLocal from="dataToInsert"/>
  <output name="outputStream"/>
</xmlBulkLoad>

Specification

Element xmlBulkLoad:

Input and Output Types

Data Resource Accessor

This activity requires a data resource accessor that implements the following interface: uk.org.ogsadai.dataresource.XMLDBCollectionProvider

Required Libraries

The use of this activity requires the following jar to be loaded on the server:

XML Schema

OGSA-DAI/schema/ogsadai/xsd/activities/xml_bulk_load.xsd

Class

uk.org.ogsadai.activity.xmldb.XMLBulkLoadActivity

Client Toolkit Class

uk.org.ogsadai.client.toolkit.activity.xmldb.XMLBulkLoad