cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem with attributes

former_member349889
Participant
0 Kudos
348

Detalhes

Good afternoon, I'm doing a mapping in the PI where I have a tag that receives several lines with concatenated information and needs to map to an element with an attribute. in the example I have four records, the first maps the correct infrastructures and the others, the attribute is with the last value.Example:SAP

Result

Mapping

How can I make the mapping to be right?

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member349889
Participant
0 Kudos

Hi,

Thank you for your help. I applied the SplitbyValue in the attribute and it worked,

former_member190293
Active Contributor
0 Kudos

Hi!

Try to use SplitByValue(each Value) before mapping to target element for attribute.

Regards, Evgeniy.

former_member349889
Participant
0 Kudos

Bom dia.

Segue:

public String Split (String a, Container container) lança StreamTransformationException {

String [] parts = a.split ("&", 2); String temp = partes [0]; temp de retorno;

}

public String Split2 (String a, Container container) lança StreamTransformationException {

String [] parts = a.split ("&", 2); String temp = partes [1]; temp de retorno;

}

former_member190293
Active Contributor
0 Kudos

Hi!

Wouldn't you also provide the source code for UDF which splits the source strings?

Regards, Evgeniy.