Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I know that accessing schema when it's a processor component is quite simple because schema is in the Record Object parameter.
But I am developing an input component and I have implemented a @DiscoverSchema method which works fine, and it retrieves the schema.
In my @Producer method of my source class. I have to retrieve the schema set by the user (it can me modified after he clicks "Guess Schema" )
I am thinking about this scenario :
1- User clicks 'Guess Schema" and the @DiscoverSchema method is triggered so "Default" schema is fixed.
2- User chooses to modify this schema before executing component
My Question is where is the Schema structure stored ? How to access it ? Is it possible to access it in my service or source classes ? Is it possible to detect schema that was modified by user before executing component ?
I know that the @DiscoverSchema has a return type of Schema and calling it my source class would only retrieve the default schema and not the modified one.
Best regards,
Safus
Hi @safouane BEN MANSOUR
Please, have a look at https://talend.github.io/component-runtime/main/1.31.0/studio-schema.html#_accessing_columns_metadata
for accessing to designed schema.
Best regards.
--
Emmanuel
Hi @safouane BEN MANSOUR
Please, have a look at https://talend.github.io/component-runtime/main/1.31.0/studio-schema.html#_accessing_columns_metadata
for accessing to designed schema.
Best regards.
--
Emmanuel
Hi @Emmanuel GALLOIS,
It works like a charm 😄
Best Regars,
Safus