Skip to Content
avatar image
Former Member

context object in xpath under reciver determination

hi all.

iam new to xi.

i just want to know what is the need of context object in xpath under reciever determination.

i tried a lot for understanding this context object but no way.

can any body expalin briefly.

waiting for ur great answer.

bye.

regards.

seeta ram.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 31, 2007 at 09:46 AM

    Hi,

    Check this blog it may be help full.

    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

    With Regards,

    Pradeep N

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 31, 2007 at 09:46 AM

    Hi Sita,

    Context objects are used in receiver determination step at the runtime based upon the input message .In input message we define the context object as any field this field can later be used to determine receivers from the list of receivers based upon its value

    To locate an y particular field in message we use XPATH expression .This is used in context object

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • May 31, 2007 at 10:04 AM

    suppose say you have a particular field in an xml and the xpath for the same is;

    root/seg1/seg2/seg3/seg4/seg5/seg6/seg7/seg8/field, so instead of always using the whole xpath you can store it as a context object. It is like a variable say fieldcontextobject = root/seg1/seg2/seg3/seg4/seg5/seg6/seg7/seg8/field and in further development u can just ref. fieldcontextobject instead of the whole xml !!!!

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

    More on Xpath:

    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

    Add comment
    10|10000 characters needed characters exceeded