• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Use of configuration file for links in tMap component

#1 2008-06-13 17:28:28

bouncebounce
Member
Registered: 2008-06-09
Posts: 20

Use of configuration file for links in tMap component

Hi,

I'd like to create a configuration file allowing me to configure the links between the input data and the output data in a tMap component.

For example, I have a fieldA in the input data that is linked to the fieldB of the output data. But I want to allow my application being configurable allowing, per example, later,  to link the fieldA of the input data to the fieldC of the output data rather than the fieldB thanks to a configuration file and not by using Talend to modify the link.

Is that possible to configure the link relation between the input data and the output data of the tMap component or for others components thanks to a configuration file or by another way without using Talend to modified the link later ?

Thanks for your reply.

Offline

#2 2008-06-16 10:04:14

bouncebounce
Member
Registered: 2008-06-09
Posts: 20

Re: Use of configuration file for links in tMap component

Nobody has an answer about this subject ?

I just want to know if it is possible for the moment ?

Thanks.

Offline

#3 2008-06-16 10:56:24

amaumont
Talend team
Registered: 2006-09-20
Posts: 471

Re: Use of configuration file for links in tMap component

You can use a context variable and test it in your output expression fields such as:

In your expression field B:

Code:

context.isFieldA_linkedTo_FieldB ? input.fieldA : null

and in your expression field C:

Code:

 ! context.isFieldA_linkedTo_FieldB ? input.fieldA : null

What do you think about this solution ?

Offline

#4 2008-06-16 13:53:29

bouncebounce
Member
Registered: 2008-06-09
Posts: 20

Re: Use of configuration file for links in tMap component

Thanks for your reply.

But I t think that it would help me only partially because the links created with your expressions is writting in hard thanks to Talend.

I want to link the input and output fields dynamically thanks to a file within which is described the relations between the fields (a configuration file).

Per example, here is an exemple of configuration file describing the relation between the input fields and the output fields :

InputField; OutputField
firstname; input.firstname
lastname; input.lastname
...

And if I will decide to modify the input field corresponding to the output field, I want to modify the file configuration like that :

InputField; OutputField
name; input.firstname
description; input.lastname
...

Do you understand what I mean ? And is it possible to do that ?

Thanks for your replies.

Offline

#5 2008-06-16 14:07:16

amaumont
Talend team
Registered: 2006-09-20
Posts: 471

Re: Use of configuration file for links in tMap component

I understand you, and you can't use an external conf file to do this.

Therefore, I don't know a way to do it, indeed job should be recompiled to take account of modifications.

Offline

#6 2008-06-16 15:20:16

bouncebounce
Member
Registered: 2008-06-09
Posts: 20

Re: Use of configuration file for links in tMap component

OK, that is what I was thinking about.

Thanks for your reply.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Use of configuration file for links in tMap component

Board footer

Powered by FluxBB