How to Define a Schema in a Custom Component

One Star

How to Define a Schema in a Custom Component

Hello,
Can anyone point me in the direction of some docs that explain how to define the columns in the schema of a custom component. I have written a simple output component and I want to define the columns of the schema and I can not figure out how to define the names of the columns. I have seen examples of REJECT schemas but I need to define it in the flow schema.
Thanks
Highlighted
One Star

Re: How to Define a Schema in a Custom Component

Never mind, I got it:
<PARAMETERS>
<PARAMETER NAME="INPUT_SCHEMA" FIELD="SCHEMA_TYPE" REQUIRED="true" NUM_ROW="77">
<TABLE READONLY="true">
<COLUMN NAME="body" TYPE="id_Document" READONLY="true" />
<COLUMN NAME="string" TYPE="id_String" LENGTH="4048" READONLY="true" />
</TABLE>
</PARAMETER>
<PARAMETER NAME="SCHEMA_RESPONSE" FIELD="SCHEMA_TYPE" NUM_ROW="78" CONTEXT="RESPONSE">
<TABLE READONLY="true">
<COLUMN NAME="statusCode" TYPE="id_Integer" READONLY="true" />
<COLUMN NAME="body" TYPE="id_Document" READONLY="true" />
<COLUMN NAME="string" TYPE="id_String" LENGTH="4048" READONLY="true" />
</TABLE>
</PARAMETER>
<PARAMETER NAME="SCHEMA_FAULT" FIELD="SCHEMA_TYPE" NUM_ROW="79" CONTEXT="FAULT">
<TABLE READONLY="true">
<COLUMN NAME="errorCode" TYPE="id_Integer" READONLY="true" />
<COLUMN NAME="errorMessage" TYPE="id_String" LENGTH="1024" READONLY="true" />
</TABLE>
</PARAMETER>

easy as that!

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download