Skip to Content
author's profile photo Former Member
Former Member

context object

hi....fri's

1)what is the diff b/n context handling and context object

thanks in advance

Sreenu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Nov 25, 2007 at 01:46 PM

    hi vishnu,

    Context Object:

    Context objects are a simple alternative to XPath expressions for accessing the contents of a message. Take the following message instance as an example:

    <InvoiceOut>

    <customerData>

    <address>

    <name> ... </name>

    <postalCode> ...</postalCode>

    ...

    </address>

    ...

    </customerData>

    </InvoiceOut>

    To access the content of the <postalCode> field, you would use the following expression in XPath:

    /InvoiceOut/customerData/address/postalCode

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

    Context Handling:

    Context handling is an important technique to map complex scenarios in XI.

    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

    /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping

    regards,

    nikhilbos

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2007 at 04:52 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2007 at 05:03 AM

    > 1)what is the diff b/n context handling and context

    > object

    Context Handling:- In XI during Mapping Queues are used...so as per the hireracy the elements in queue get inserted...

    Example:

    <A>

    <Item>1</Item>

    <Item>2</Item>

    </A>

    <A>

    <Item>3</Item>

    <Item>4</Item>

    <Item>5</Item>

    </A>

    Queue for the same XML at the time of Mapping:

    -


    1

    ________________

    2

    ________________

    <b>

    Context is inserted</b>

    ________________

    3

    ________________

    4

    ________________

    5

    ________________

    So if I want to remove this context I will use the Node Function called <b>removeContext</b> When I use it It will give me a queue like this.

    ________________

    1

    ________________

    2

    ________________

    3

    ________________

    4

    ________________

    5

    ________________

    Context Object: Is use when there is a scnerio in which at Runtime you have to route the message to any receiver(based on the data of particular Element)

    Example: I have an XML in which there is a TAG called <CustomerID>

    Now If

    <CustomerID> hasvalue 123 then I will send the message to System/Service A

    If it has value other then this then I have to send it to toher System or Service

    Hope this clear all your dought:-)

    Thanks

    Farooq.

    *Rewards Points if you find it useful*

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2007 at 05:30 AM

    Hi vishnu,

    <b>Context Object</b>

    If u have multiple receiver system then to determine the reciever u can use context object.....

    the alternative of context objetc is X-Path...

    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

    Get the details here:

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

    Technical Context Objects :

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

    A list of the Technical Context Objects names can be found here:

    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm

    Difference between context object and x-path:

    diff-between-context-object-and-x-path

    <b>Context Handling</b>

    XML contains some nodes and they follow some hierarchy. The level of a particular node in the hierarchy can be deremined by the context of the node in the hierarchy. Context handling is a technique where we use for manipulating these nodes and their hierarchy in the XML file/tree.

    There are some standard given function to handle these kind of context handling issues.

    For more information...

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0f6991e5-0901-0010-e0b0-dc2a26cc0389

    Just check this one also

    /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping

    /people/sap.india5/blog/2006/01/03/xi-asynchronous-message-processing-understanding-xi-queues-part-i

    Context handling -- https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0f6991e5-0901-0010-e0b0-dc2a26cc0389

    Queue Processing --

    http://help.sap.com/saphelp_nw04/helpdata/en/04/827440c36ed562e10000000a155106/frameset.htm

    Regards

    Biplab

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2007 at 07:49 AM

    Hi vishnu sreenu ,

    The following websites give u the complete details on Context Handling &Context Objects :

    Context Objects

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

    Context Handling

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f9548dd

    Introduction to Context Handling in Message Mapping

    /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping

    Context Handling & Context Objects

    http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf

    Context Objects :Booking a Single Flight (Proxy-to-Proxy)

    http://help.sap.com/saphelp_nw04/helpdata/en/67/2edd3f597af206e10000000a1550b0/content.htm

    cheers!

    gyanaraj

    ****Pls reward points if u find this helpful

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.