public Collection importData (IProcessparent, String entityName, String importFileName, Integer batchSize, Boolean validate) throws AccessDeniedException, ExecutionException;
This method imports the instances of the specified business object into the system from the specified file (see also Export and Import).
entityName | the name of the business object the instances of which are imported |
importFileName | the full path to the file being imported |
batchSize | the number that specifies how many records are imported into the system before a transaction is committed. The system imports records in batches. Once the batch is complete the transaction is committed. If something goes wrong with the import of the subsequent batches so that the import process is aborted, those records that have been already committed are not affected. The higher the number the faster the processing of records, however it is also more likely that the whole process fails without writing any records. |
validate | if the value of this parameter is true any rules associated with the business object being imported are executed. Consequently if there are any records which trigger the error action (see “Aware IM Rule Language Reference”) they are ignored and the corresponding business object is not created or modified. Setting this flag to true slows down the import process considerably, but on the other hand it guarantees that only valid instances of the business object are imported |
The created or modified instances of the business object as a collection of IEntity
objects if validate flag is true. If validate flag is false null
is returned.