Skip to Content
avatar image
Former Member

Java Mapping Help

hi @ ,

Is it possible thru UDF to perform mapping with a target node but simulatneoulsu access any other node of the target message like I will use the mapping like this

A --UDF --B but in UDF refer to any other target field of the target message say C,if yes then please help with the links or code

Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 27, 2007 at 04:16 PM

    If B and C are used in the target side(multimapping),You can access any field in that mapping.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2007 at 04:27 PM

    Hi priya,

    No... u cant refer to C if ur input to UDF is A.

    Thanks,

    Maheshwari.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2007 at 04:40 PM

    Hi priya,

    yes..even though C is in targate structure u cant refer it in UDF....how ur UDF will know ur target structure....its simple java code.

    try doing that... u will get error.

    Thanks,

    Maheshwari

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Maheshwari,

      Even i also have that doubt but i guess XPATH can be used .I haven't worked on it so not sure abt hence posted the query .

      Is there any other way to do this?

      Can u use the Node in UDF to perform chk on the complete elements present and then populate the target field?

      Regards

      Message was edited by:

      Priya

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

    Hi Priya,

    As Maheshwari said,you cant access target node or element inside UDF code.

    just i want to access onething why do you want to access target element from UDF? whats your exact requirement?

    Chees,

    Jag

    Add comment
    10|10000 characters needed characters exceeded