Here are some basic instructions on how to set up the task:
- Go to Titan Admin
- In the left nav, expand the “Scheduled Jobs” node
- Click on the “Import Files Task” node.
- Hit the “New” button from the global toolbar and create a task by specifying a name and hitting ok.
- In the right pane, you will be presented with some configuration items.
- In the “XML Configuration data” section, you will need to modify the data appropriately. Below is a rundown of each element and what it does.
InterfileDelay – This is the sleep time between each file that is uploaded. It is basically an effort to avoid hogging CPU and keep the system from making a large number of web requests to upload files in a short period of time.
SourceFileDir – This should be on the app server (A.K.A., the server where the background service is installed). All file paths in this config section are relative to the App server, which is where the import files code runs. This is really an arbitrary value. Just drop your files onto the app server, and set this value to the root folder the files are in.
DestFileDir – This is where the files will be place once they are uploaded. This should be same as the upload path of the file pile you’re uploading to. To confirm what this value is, go to the “File Piles” node in Titan Admin. Click on the file pile you’re uploading to, and copy the “Upload Path” property from the right pane.
RootDocID – This is the DocID of the folder you want to import the files into. All of the files/folders will be created as children of this root DocID. You can find the DocID of the folder by hovering your mouse over it. Let’s say I wanted to upload to “ImageLibrary>SiteImages>Shared” folder in the workstation. Navigate to that folder in the workstation, and hover your mouse over it. The number in brackets is the DocID that you should use for this field.
DeleteOldversion – 1 equals true. If you are replacing an existing file, this will dictate whether or not the previous version will be deleted from the server.
DeleteSource – If set to 1, the files in the <SourceFileDir> field will be deleted from their original location after being imported into the system. If you have no use for the files in the SourceFile directory after they are imported, I would set this field to 1.
HideMIssingFiles - This will hide files in the workstation if they exist in the location specified by the <RootDocID> field, but are not present in the set of files being uploaded. For example, lets say you had a file named OldFile.txt in the “Shared” directory you were uploading to. However, you did not import a file named OldFile.txt as part of the import files task. This OldFile.txt would then be set to hidden (in the properties tab for that file). As with the other fields, 1 equals true and 0 equals false. In general, I would leave this at 0. The main reason to use this would be if you are importing multiple times to the same folder, and want to create a mirror image of the imported files/folders every time you run the task.