Skip to Content
author's profile photo Former Member
Former Member

Single entry to target from same multiple source entries

Hi,

I am working on a JDBC to file scenario.

In graphical mapping I have to check if multiple rows have same value then I have to pass single entry to target structure for multiple entries.

i.e. Source payload can have following values

1,2,3,4,5

1,2,3,4,5

2,3,4,5,6

Target payload should contain

1,2,3,4,5

2,3,4,5,6

I can achieve above said logic using UDF and global variables, Is their any other way of doing it using standard function?

Thanks

Amol

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 23, 2010 at 08:45 AM

    Hello,

    With some context manipulations, this can be done by using a logic similar to the one below:

    SourceField --> removeContext --> sort:lexicographical(case insensitive) ascending --> splitByValue:valueChanged --> collapseContext --> Target (1..unbounded or 0..unbounded)
    

    Hope this helps,

    Mark

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2010 at 09:57 AM

    Hi Amol,

    Please try what Mark has suggested. This should work in your case.

    Please take a look at this thread for a similar discussion:

    graphical-message-mapping---splitbyvalue

    Regards, Gaurav.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2011 at 08:39 AM

    Thanks everyone,

    I refered below dicussion. Closing this thread.

    Link: Duplicate records

    Regards

    Amol

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.