XML Process Import

XML Process Import creates cases from XML files that another system (for example an ERP or a document scanner) saves to a shared folder on the server. The files are processed by the XMLProcessImport cron. Use this screen to check the import and step in manually: what is waiting to be imported, what has been imported and what failed. Only administrators can see the screen, and it works only with a valid licence. To open it, go to Administration → Integration and Data Management → XML Process Import.

How the import works

  1. In Crons, the parameters of the XMLProcessImport cron set which folder to read files from, which template and header to create cases from, and where to move the files after processing (see Cron parameters).
  2. On each run, the cron goes through the folder, creates a case from each file it finds and saves a value from the XML to a case variable. It can also attach a document to the case.
  3. Each file is written to the import audit with a status. The cron does not import a file a second time if it has already been processed (unless the parameters say otherwise).

The screen reads only active XMLProcessImport crons. If none is active, the Scheduled Imports and Completed Imports tabs are empty.

Import statuses in the Status column:

StatusMeaning
QUThe file is queued for processing (after a manual import or a reimport).
EQThe file is being processed.
FIThe case was created successfully.
ERThe import failed. Details are on the Logs tab.
SKThe file was skipped manually. The cron will not import it.

Import Audit

The default tab. Each row is one file that TAS processed or skipped.

No.ElementPurpose
1CloseReturns you to the Administration menu.
2Import AuditRecords of all processed and skipped files.
3Scheduled ImportsFiles in the input folder.
4Completed ImportsFiles in the archive folder after processing.
5LogsLog records in the XML import category.
6DetailShows all data of the selected row. Double-clicking a row does the same.
7Insert NoteAdds a note to the selected record, for example how an error was resolved. Save the note with the Save button.
8RefreshReloads the table.
ColumnContent
IDAudit record number (import ID).
Batch IDNumber of the run in which the file was processed. Files from the same run share the same number.
Case IDThe case created from this file.
File Name, File PathName and full path of the file on the server.
StatusImport status (see the table above).
Start, End, Duration (ms)When processing started and ended, and how long it took.
Cron IDThe cron that processed the file.
XML File Size, Attachment SizeSize of the processed file and of the attached document.
Job ResultResult of the processing.
NoteNote added by an administrator.
Import CountHow many times the file was actually imported.
Retry CountHow many times the cron tried to process it, including skipped attempts.

The buttons above the table work with the selected row: first click the row, then the button. The table footer contains paging, the record count and the AutoFit (fits column widths), Excel and csv (table export) buttons.

Scheduled Imports

Files currently in the input folders of active XMLProcessImport crons. This includes files that have already been processed but remained in the folder. The table takes their status and import ID from the audit.

No.ElementPurpose
1DetailShows all data of the selected file.
2Import XMLProcesses the selected file immediately and creates a case from it, even if it was imported before.
3Skip XMLSets the file status to SK. The cron skips it on subsequent runs.
4MoreMenu with Download XML (downloads the file) and Download Attachment (downloads the document that will be attached to the case).
5RefreshReloads the table. Refresh it after an import or skip to see the new status.

Columns: File Name, File Path, Cron ID, Last Modified, Created, Attachment Name, Attachment Size, Status and Import ID.

Import XML creates the case immediately
A manual import does not wait for the cron and does not check whether the file has already been processed. Importing the same file again creates another case.

Completed Imports

Files that the cron copied to the archive folder after processing (the copyXmlDestination parameter). Without an archive folder, the tab stays empty.

No.ElementPurpose
1DetailShows all data of the selected file.
2Reimport XMLCopies the file (and its attachment, if found) back to the input folder and imports it again immediately. A new case is created.
3MoreDownload XML and Download Attachment from the archive.
4RefreshReloads the table.

Columns: File Name, File Path, XML File Size, Cron ID, Last Modified, Created, Attachment Name, Attachment Size.

Logs

TAS log records pre-filtered to the XML import category. Error rows are red, warning rows orange.

No.ElementPurpose
1DetailOpens the full log record. Double-clicking a row does the same.
2Time RangeLimits the log to the From – To period. When a range is set, the button is orange. Click Reset to clear the range.
3RefreshReloads the log.

Columns: Date (with milliseconds), time since the previous record, Message, Category, Level (error, warn, info, debug, trace), Duration (ms), Import ID and Case ID. Use the import ID to find all records for one file.

Cron parameters

The import is configured by an administrator in Crons, on the XMLProcessImport cron. One cron handles one configuration. For another folder or template, copy the cron. The cron is inactive by default.

ParameterPurpose
xmlPathFolder (or several folders separated by |) containing the input files.
walkSubfoldersAlso go through subfolders (default yes).
processAllFiles, processFileExtProcess all files, or only files with the given extension (default .xml).
tProcId, headerIdTemplate and header from which the case is created.
iprocInstOwner, orgstrIdUser on whose behalf the case is created, and their organizational unit.
iprocNameCase name. It can contain a value from the XML in curly brackets.
tvarName, xmlAttrCase variable in which the value from the XML is saved, and the path to the value in the XML (parts separated by a dot). Without a path, the whole XML is saved.
xmlFileTvarName, configTvarNameVariables in which the file path and the import configuration are saved.
addDmsFile, attachSelfDocument to attach to the case (the path can contain a value from the XML or the file name), and whether to attach the XML file itself as well.
mustHaveFileIf the document to attach is missing, the import fails.
copyXmlDestination, copyDmsDestinationArchive folders to which the file and the document are copied after processing. The Completed Imports tab reads from the copyXmlDestination folder.
deleteSourceXml, deleteSourceDmsFileDelete the source file and document after processing.
skipProcessedFileNameProcess each file only once (default yes).
limitMaximum number of files processed in one run.
maxErroredCountNumber of errors after which the run stops (default 1, i.e. right after the first error).
singleProcessTimeoutTime limit for one file in seconds (default 30).
emailAddress to which TAS sends a summary of successful and failed imports.
Allowed folders
The folders in the parameters must be among the folders TAS is allowed to access on the server. Otherwise the import fails with the error “Path is not allowed for xml process import.”

Related: Crons, Logs, Licence.

Scheme

HR agenda and agenda handover

Syca (opens in a new tab)

Powered by HelpDocs (opens in a new tab)