August 17, 2023

tAssertCatcher – Docs for ESB 5.x

tAssertCatcher

tAssertCatcher_icon32_white.png

tAssertCatcher Properties

Component family

Logs & Errors

 

Function

Based on its pre-defined schema, fetches the execution status
information from repository, Job execution and tAssert.

Purpose

Generates a data flow consolidating the status information of a
job execution and transfer the data into defined output
files.

Basic settings

Schema and Edit
schema

A schema is a row description, it defines the fields to be
processed and passed on to the next component. In this particular
case, the schema is read-only, as this component gathers standard
log information including:

 

 

Moment: Processing time and
date.

 

 

Pid: Process ID.

 

 

Project: Project which the job
belongs to.

 

 

Job: Job name.

 

 

Language: Language used by the
Job (Java)

 

 

Origin: Status evaluation origin.
The origin may be different tAssert
components.

 

 

Status: Evaluation fetched
from tAssert. They may
be

Ok: if the assertive statement
of tAssert is evaluated as true at
runtime.

Failed: if the assertive
statement of tAssert is evaluated
as false or an execution error occurs at runtime. The tested Job’s
result does not match the expectation or an execution error occured
at runtime.

 

 

Substatus: Detailed explanation
for failed execution. The explanation can be:

Test logically failed: the
investigated Job does not produce the expected result.

Execution error: an execution
error occurred at runtime.

 

 

Description: Descriptive message
typed in Basic settings of
tAssert (when Catch tAssert is selected) and/or the
message of the exception captured (when Catch
Java Exception
is selected).

 

 

Exception: The Exception object
thrown by the Job, namely the original exception.

Available when Get original
exception
is selected.

 

Catch Java Exception

This check box allows to capture Java exception errors and show
the message in the Description
column (Get original exception not
selected) or in the Exception
column (Get original exception
selected) column, once checked.

 

Get original exception

This check box allows to show the original exception object in the
Exception column, once
checked.

Available when Catch Java
Exception
is selected.

 

Catch tAssert

This check box allows to capture the evaluations of tAssert.

Global Variables

ERROR_MESSAGE: the error message generated by the
component when an error occurs. This is an After variable and it returns a string. This
variable functions only if the Die on error check box is
cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable
functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl +
Space
to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio
User Guide.

Usage

This component is the start component of a secondary Job which
fetches the execution status information from several sources. It
generates a data flow to transfer the information to the component
which proceeds.

Limitation

This component must be used with tAssert together.

Related scenarios

For using case in relation with tAssertCatcher, see
tAssert scenario:


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x