Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC CSV import - Conditional mapping using if-else

I am performing a CSV import in RTC,in which I need to do mapping if certain condition in the source file is met . I am using a mapping file for CSV import . Can we use if-else condition in mapping file.

0 votes



4 answers

Permanent link
I am not aware of this capability. The mapping file is an XML file and this does not support conditions as far as I can tell.

0 votes

Comments

Can xslt be used instead of xml?

I have never seen the ability to configure an XSLT in the import, so I think no. You can not use an XSLT file, because the mapping is read by the importer in the required format and than the mapping data read is used internally during the import.


Permanent link
okay , so it can be achieved in RTC ? Do we need any script if yes ..how and where to execute it ?

0 votes

Comments

Okay .So how can we achieve it. Do we need a script to write , if yes .. how and where it needs to be executed


Permanent link
What you could do:
- create a XSLT with the necessary business conditions
- Transform the existing CSV with this XSLT 
- Create 1-1 Mapping and import


0 votes

Comments

Step 1 is fine . I have have a doubt for step 2 and 3 . Shall I give XSLT file as an input in custom data mapping field ? I mean am not not sure where wld XSLT wld be used while imporing ?

As I said above, there is no place to do so in the wizard. You would have to run XSLT manually on your CSV file and create new CSV file(s) with the correct data, that you can then import.


Permanent link
 Why cannot you condition/process your data as per the business condition using macros prior to importing?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023

Question asked: May 04 '15, 8:16 a.m.

Question was seen: 3,294 times

Last updated: May 07 '15, 4:34 p.m.

Confirmation Cancel Confirm