cancel
Showing results for 
Search instead for 
Did you mean: 

context objects

Former Member
0 Kudos

what is context object?Will any one can explain me the one real situtaion where we use this context object

Accepted Solutions (0)

Answers (3)

Answers (3)

prateek
Active Contributor
0 Kudos

Hi Venugopal,

Context objects are alternative to XPATH expressions. It is like macros in other programming langugage. If you define this , you can use this object in the receiver determination while doing conditional receiver determination

Check out these

http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm

/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

Here is a scenario where context objects were used for BPM

<i>[Reward points if helpful]</i>

Regards,

Prateek

Former Member
0 Kudos

Hi,

Context Object is the alternative to Xpath to access the content of a message element at runtime, this is to be defined in design time , and refer in messafe interface .

The use of context object, we can use it to access the content of a element in message in runtme. second case based on content we can route the message in condition.

Context objects are a simple alternative to XPath expressions for accessing the contents of a message

see the below link

http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm

Regards

Chilla

Former Member
0 Kudos

In short, context objects are used to replace the complex Xpath expression. It is used for checking a particular field's value at runtime.

Scenario. If the sender msg has the value 1 in node<id> send the msg to target1 and if it has the value 2 send it to target 2. Here we create a context object and assign it to the id node in sender interface. In receiver determination we use the context object to check the value.

Regards,

Jai Shankar