How to Define a Schema in a Custom Component

Highlighted
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
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!

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch