Finally, in order to be able to use the file package import utility, we need to setup the directory listener.
We want to allow someone to drop a ZIP package into the directory /mnt/bom-package/in
.
In the file ${TIF_ROOT}/modules/enovia/cfg/directorylistener/BOMPackageImport.xml
add this
${TIF_ROOT}/modules/enovia/cfg/directorylistener/BOMPackageImport.xml
<tif:DirectoryListener
xmlns:tif="http://technia.com/TIF/DirectoryListener"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://technia.com/TIF/DirectoryListener http://products.technia.com/tif/schema/latest/DirectoryListener.xsd">
<tif:Name>Import BOM Package via File</tif:Name>
<tif:WithContext user="IntegrationAgent" /> (1)
<tif:Paths>
<tif:Input>/mnt/bom-package/in</tif:Input> (2)
<tif:Output>/mnt/bom-package/out</tif:Output>
<tif:Error>/mnt/bom-package/err</tif:Error>
</tif:Paths>
<tif:Handler type="CreateUpdateIntegration" /> (3)
<tif:Arguments>
<tif:Argument name="configuration" value="tvc:createconfig/BOMPackageImport.xml" /> (4)
</tif:Arguments>
</tif:DirectoryListener>
1 |
Specify what user to run DB calls in ENOVIA/3DExperience as |
2 |
Configure input directory |
3 |
Specify that we are using the CreateUpdateIntegration handler |
4 |
As argument, we need to provide the create update configuration and we point out the previous config we made |
The directory listener will after processing create a file with the same name as your input file, in the configured output directory, containing the result of the operation.
If any error happens, a file with the same name as the input file will be created in the error directory, containing error information.