[resolved] tLogCatcher - Priority

One Star

[resolved] tLogCatcher - Priority

Hi,
When a tWarn/tDie message is caught by the tLogCatcher it processes various pieces of data. One of these is the "Priority" that relates to the priority drop down box in the tWarn/tDie component. Is it possible to access the Text for the "Priority" rather than the index?
For example, I would like to see "Warning" instead of 4. Is there an object that stores this enumeration that I could access, rather than having to write my own?
Thanks,
David

Accepted Solutions
Highlighted
Community Manager

Re: [resolved] tLogCatcher - Priority

Hello David
Is there an object that stores this enumeration that I could access, rather than having to write my own?

No, but you can convert the digit to string message on tMap, eg:
tLogCatcher--row2-->tMap--tLogRow
on expression of priority column:
row2.priority==4?"warrning":(row2.priority==5?"error":"other info")

Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post


All Replies
Highlighted
Community Manager

Re: [resolved] tLogCatcher - Priority

Hello David
Is there an object that stores this enumeration that I could access, rather than having to write my own?

No, but you can convert the digit to string message on tMap, eg:
tLogCatcher--row2-->tMap--tLogRow
on expression of priority column:
row2.priority==4?"warrning":(row2.priority==5?"error":"other info")

Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog