cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping: Create context change

former_member69608
Participant
0 Kudos

Hi!

I have some values in a queue and they are all in the same context. Problem is that I want it to exist 2 empty contexts before this one. Is there a way to achieve this?

Accepted Solutions (0)

Answers (2)

Answers (2)

azharshaikh
Active Contributor
0 Kudos

Hi Stefan,

Please check if the Node function - formatByExample helps(it will add the context in the queue based on the other input Context) ..for more details on this funct chk t following:

Regards,

Azhar

iaki_vila
Active Contributor
0 Kudos

Hi Stefan,

You can do with UDF, If you have a ResultList Result output, you can do:


result.addValue(ResultList.SUPPRESS);

result.addValue(ResultList.SUPPRESS);

Before these line you copy the result from the input.

Im a bit curious, why do you need this?, i haven't clear why could be the goal to insert these values.

Regards.

former_member69608
Participant
0 Kudos

Hi,

My problem is that i have three lines, and under each of those there should be another segment containing some values.

The first two are divided by contexts, and there are 1 value in each context.

However, for the third line there should be 2 values in the context. This means that i need two blank contexts and then my values in the third context.

I know this seems strange, but it is not easy to describe.

Your code gives me two suppress, but I also need my values after those.

sahithi_moparthi
Contributor
0 Kudos


Hi,

Please share your source xml and expected output if possible.