cancel
Showing results for 
Search instead for 
Did you mean: 

Context change

Former Member
0 Kudos

Hi experts,

By using 2 ways we can set the context,

1. change the context

2. Use the remove context

Here which one is preferable and what is the diff b/w this two

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

RemoveContexts : It removes all higher level contexts and genetate the plain values.

Context Change : By setting the context change to the sender field also we can perform the context change.

Difference :

Suppose we have a condition like a = ZI03 then map b to some target variable, here source occurs more than once.

If we change the context, suppose the condition true and b is not exists then it takes the next segment(repeated segment) b value.

If we use remove context then it takes only the corresponding value.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

changing the context is a little more detailed.

If you have for example three contexts:

C1

C2

C3

With change context you can choose any of them, but with removeContext it will always be the outermost context (in this case C3).

Regards

Patrick

GabrielSagaya
Active Contributor
0 Kudos

RemoveContexts

********************

Removes all higher-level contexts of a source field. In this way, you can delete all hierarchy levels and generate a list.

Explicit Context Change

****************************

Message mapping in XI works by means of queues. A queue contains an entire XML instance of the source message. Depending on the hierarchy in the source message, different nodes and elements can be categorised into different contexts. All the nodes and elements that belong to the same parent node are said to be in the same context. Hence, the nodes and elements that belong to different parent nodes have to be separated by a context change.

http://www.riyaz.net/blog/index.php/2007/12/08/xipi-introduction-to-context-handling-in-message-mapp...