Filter (FILTER)

{"URL":["/*.*/awa/pa_view_FILTER_OUTPUT"],"heroDescriptionIdentifier":"ice_filter_object","customCards":[{"id":"ice_FilterDefine","title":"Defining a Filter Object","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/*.*/Automic%20Automation%20Guides/Content/AWA/Objects/obj_filter.htm","languages":["en-us"]},{"id":"ice_filter_example","title":"Example","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/*.*/Automic%20Automation%20Guides/Content/AWA/Objects/obj_Filter_Example.htm","languages":["en-us"]},{"id":"ice_working_with_objects","title":"Working with Objects","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/*.*/Automic%20Automation%20Guides/Content/AWA/Objects/obj_WorkingWithOverview.htm","languages":["en-us"]},{"id":"ice_AWIs_CommonFunctions","title":"Common Functions","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/*.*/Automic%20Automation%20Guides/Content/_Common/CommonFunctions/CF_OverviewOfChapter.htm","languages":["en-us"]},{"id":"ice_UnderstandingPA","title":"Understanding the Process Assembly Perspective","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/*.*/Automic%20Automation%20Guides/Content/AWA/Objects/ProcessAssembly.htm","languages":["en-us"]},{"id":"ice_Overview_AWI","title":"Understanding the User Interface","type":"customize","url":"https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/*.*/Automic%20Automation%20Guides/Content/_Common/GettingStarted/GS_OverviewAWI.htm","languages":["en-us"]}]}

Filter objects search for a specific string or a combination of strings in one or more text files. Based on the results of the search, Filter objects return an overall true or false value. Some of the Automic Automation objects produce text files in their outputs. As a developer and object designer you create Filter objects and assign them to the External Output Files page of the those objects, namely:

The Filter object scans the output files of these objects. Filter objects that are created in Client 0 can be used system-wide.

See also Registering External Output Files.

Notes:

Object class: Passive object

Object type: FILTER

Object template: OUTPUT

To Define a Filter Object

  1. In the Process Assembly perspective click Add Object. On the Add Object dialog, select Filter. For information on how to add objects, see Adding Objects.

    A Filter object definition is made up of the following pages:

    Note: You can also create Filter objects directly from the combo boxes that serve to select objects, see Using AWI Combo Boxes.

  2. On the Object Name dialog enter the name of the new object. Choose it carefully. For more information, see Best Practices: Naming Conventions for Objects.

  3. Click OK to open the object definition pages.

  4. In the Filter Logic section specify whether one or all the search criteria must be met for the overall result to be true.

  5. Define the search criteria for the different types of file:

    • Report

      Use this option to search for strings in reports

      Reports that are generated by and stored in the Automation Engine database when a task is executed, for example logging (LOG) or activation (ACT) files

    • Registered Job Output

      Use this option to search for strings in output files from external Jobs

      Enter a file path and name.

    • File

      Use this option to search for strings in any other kind of text file that you want to check

      Enter a file path and name.

  6. In the Condition dropdown list select the operator.

  7. In Filter String enter a search string.

    Standard wildcard characters (*, ?) are allowed. You can also use variables. The search for strings in output filters is case-insensitive.

    Note: In PostgreSQL systems, only the search for ASCII letters (A-Z) is case-insensitive. The search for German Umlauts (Ä, Ö, Ü) and other special characters, such as French letters (Ç, È, É, etc.), is case-sensitive.

  8. Click Add. A search filter statement appears under the input fields.

    To remove an added search criterion, click the x on the criteria box. To edit an added search criterion, click on the search filter statement to activate it and modify its contents.

  9. Repeat these steps for all the search criteria and save the object.

  10. Assign the Filter object to the object in which you want to search for strings in their output files.

Notes:

(Filter objects of type Registered Job Output or File)

  • Define the output files that you want to register as external for the Job. They are transferred to and stored on the Agent. This way, they can be accessed from the User Interface and by the Filter object. You do this on the External Output Files page when defining the Job, File Transfer or Remote Task Manager objects.
  • When the object is executed, the system scans for the strings defined in the Filter object considering the conditions specified there. The results are published to the task report.

See also: