Skip to Content
avatar image
Former Member

context objects

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Apr 03, 2007 at 06:32 AM

    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

    Technical Context Object in ccBPM

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

    Regards,

    Prateek

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2007 at 06:28 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2007 at 06:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded