Trivial Detection
The trivial task can be used to identify content that is trivial in nature (as it holds no importance from a corporate knowledge perspective). The definition of trivial depends on your organisation. You can set whether you want to filter on documents of certain sizes or if you want to filter out files with certain extensions or document types. For example, dmg, and exe are installers and may hold no corporate importance so you may want to skip such content from being registered as a record, you can now do so by adding them to the filtered list of extensions.
Configuration
To use this task go to the task tab in your job. Select the task from the drop down and click the plus circle to configure the task. Click done after making any changes to save.
Condition check
It will execute the task when the condition's result is 'true', 't', 'on', '1', or 'yes' (case-insensitive), or run on all conditions if left empty. This condition is evaluated for each document, determining whether the task should be executed based on the specified values.
Example: If I only want to run this task for PDF documents I would use the expression: equals('#{rd.mimetype}',"application/pdf")
Filters
You can add several filters to include documents that meet all the stated criteria.
-
Filter on document below a specific size
-
Filter files below size (bytes)
-
Filter on document's above a specified size
-
Filter files above size (bytes)
-
Filter on file extension
-
Filter on document type
Once the filters are selected you can then determine what action should be taken with the files that meet the selected criteria.
-
Audit and Continue will process all documents regardless of the filter.
-
Skip the files will skip the files when they are found to meet any of the filter criteria.
-
Fail the job will processing any further documents.
Note: The record must meet all the conditions selected to be recognised as trivial. To recognise documents that match any of the criteria, use separate trivial detection tasks. See the last example below.
Metadata
The trivial detection task also includes the following default set of metadata:
-
isTrivial - Yes/No
-
ignoreSizeBelow - content ignored below size in bytes
-
ignoreSizeAbove - content ignored above size in bytes
-
ignoreExtensions - comma separated list of extensions that were listed in the criteria
-
ignoreDocTypes - comma separated list of doc types that were listed in the criteria
To view these fields in your audit results include the following mappings in your job.
Examples
Simple Example
In this example, during integration, 3Sixty will skip files that meet all of the following criteria:
Smaller than 1024 bytes
Larger than 1030 bytes.
With the PDF or txt extension
And doc as the document type.
The number of skipped files can be seen in the Job Run table. Clicking on the number skipped will take you to the Job Run report where you will see which files were skipped.
Advanced Example
You can also add multiple trivial tasks to locate documents that meet any of the stated criteria.
To chain trivial tasks, so that 3Sixty will identify trivial files that match either task, use the condition check by entering the value equals('#{field.isTrivial}', 'false')
The following example will skip files that don't meet the file size condition or files that match the list extension condition txt.
API Keys
Processor: trivialCheckTask
Key |
Display Name |
Type |
---|---|---|
use_condition | Check a condition before executing this task. | Boolean |
task_condition |
Condition |
String |
task_stop_proc |
Stop Processing |
Boolean |
checkBelow |
Filter on document's below a specified size |
Boolean |
below |
Filter files below size (Bytes) |
INTEGER |
checkAbove |
Filter on document's above a specified size |
Boolean |
above |
Filter files above size (Bytes) |
INTEGER |
checkExt |
Filter on file extension |
Boolean |
exts |
List extensions (comma separated) that you would like ignored (sqlite,dmg,bak,exe) |
String |
checkType |
Filter on document type |
Boolean |
types |
List document types (comma separated) that you would like ignored (doctype1,doctype2) |
String |
action |
Action |
String |