Subscribe to Email Updates

    Workflow | 6 min read

    Task Filtering

    Task Creation Filtering Option

    The filtering option includes two different modes (available from 1.83) :

    • Basic 
    • Advanced

    Basic Mode

    This mode includes the capability directly in the Web GUI to define expressions based on the following type :

    Type of Filter Operator Description
    Creation Date

    Older Than

    Earlier Than

    Before

    After 

    Filter the selection on when the file has been created. This will allows to select only files that have been created before or after a specific date.
    File Name

    Matches

    Doesn't Match

    This allows to filter your selection based on the name of the file.

    Examples :

    '.' for any type of character 

    '*' from 0 to infinite

    Regex expressions are also supported.

    File Path

    Matches

    Doesn't Match

    This allows to filter your selection based on the folder(s) path.

    Regex expressions are also supported.

    Last access date

    Older Than

    Earlier Than

    Before

    After 

    Same but with a trigger on when the file has been accessed for the last time.
    Last modification date

    Older Than

    Earlier Than

    Before

    After 

    Filter the selection on when the file has been modified for the last time. This will allows to select only files that have been modified before or after a specific date.
    Size

    More than

    Less than

    Filter the file selection based on the files size

     

    Advanced Mode

    This mode allows the usage of an online scripting editor to define advances filter which cannot be defined in using the simple graphical mode.

    The scripting Language is "LUA" , which a known language , with online documentation available.

    The scripting language supports :

    • Logical Operator such as 'and' , 'or'
    • Defined Functions

     

    Example of a LUA script
    --[[
    This function is auto-generated.
    By editing it, you might lose your filter configuration
    when going back to "Basic" mode
    --]]
    function test ( file )
    return
    filter_size(file, ">", 2344000)
    or
    filter_name(file, "\\b(\\w*archive\\w*)\\b")
    or
    filter_path(file, "\\b(\\w*archive\\w*)\\b")
    or
    filter_relative_date(file, "C", ">", 20, "D")
    or
    filter_relative_date(file, "M", ">", 20, "D")
    or
    filter_relative_date(file, "A", "<", 20, "D")
    end

     

    Standard filtering methods are available :

    Filtering by the size of the file 


    Example of LUA code
    ...
    filter_size(file, ">", 2344000)
    ...
    Result The workflow will only process files with a size which is bigger than 234000KB
    file Match the process file
    ">" Comparison symbol
    234000 File size

     

    Filtering by the name of the file 

    Example of LUA code
    ...
    filter_path(file, "\\b(\\w*archive\\w*)\\b")
    ...
    Results The workflow will only process files which are located in folder with a name which contains "archive"
    file Match the process file
    "\\b(\\w*archive\\w*)\\b" Regex expression 

     

    Filtering by the creation date 

    Example of LUA code
    ...
    filter_relative_date(file, "C", ">", 20, "D")
    ...

     

    Result The workflow will only process files with a creation date older or earlier than
    file Match the process file
    "C" Relative to the Creation Date
    ">" ">", "<" are available for (older than, earlier than)
    20 Number of Year, Month, Day, Hour, Minute, Second
    "D" "Y", "M", "D", "H", "M", "S" are available for (Year, Month, Day, Hour, Minute, Second)

     

    Filtering by the modification date 

    Example of LUA code
    ...
    filter_relative_date(file, "C", ">", 20, "M")
    ...

     

    Result The workflow will only process files with an access date older or earlier than
    file Match the process file
    "C" Relative to the Last Access Date
    ">" ">", "<" are available for (older than, earlier than)
    20 Number of Year, Month, Day, Hour, Minute, Second
    "D" "Y", "M", "D", "H", "M", "S" are available for (Year, Month, Day, Hour, Minute, Second)

    Somes addition informations which can be helpful for using the feature :

     

    Related Categories

    Workflow

    You may also like:

    Workflow Best Practice

    Best Practice - Workflow Multi copies on tape

    HOW TO PROCEED TO IMPLEMENT SPECIFIC WORKFLOWS WHEN DEALING WITH MULTI TAPE COPIES ? In this following blog, we are look...

    Workflow Settings Best Practice

    Primary Storage

    Definition Primary storage is the type of storage and technologies used to store and retain digital information that is ...

    Workflow Tape Library management

    Maintenance task

    Nodeum provides differents task of maintenance dedicated for tape Library. We can create task for : Tape Rehydratation T...

    Let Us Know What You Thought about this Post.

    Put your Comment Below.

    Learn and grow with award-winning support and a thriving community behind you.

    Get the free version