Skip to Content
avatar image
Former Member

Design issue

Hello,

I have a adapter module ( java bean ) which gives either of 2 xmlx : Xml A or Xml B

Xml A : has a separate mapping and then it is mapped to IDOC.

Xml B : is mapped to a flat file and goes to a directory on NFS

So the way to design this is a single comm channel will pick files and either of 2 xmls will be generated. In first scenario recev determination : i will put cond recv determination that only xml having top node of xml A should pass and then through pipeline steps it will be mapped to IDOC,.

And in second case for XMl B : same channel will pick file but in cond recv detemrination : i will put a check to let only xml pass through which has top node as of xml B.

So basically in pipeline steps : first the sender channel picks file and then all the recv determination etc happens?

Want to confirm whether this design will work?

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 13, 2009 at 02:56 AM

    This shouldnt have any issues.

    Make sure instead of directly using an xpath to check condition, create a context object.

    I suggest this because your adapter module will generate two different xml structures and hence only a pre defined context object can make sure the right path is checked.

    Add comment
    10|10000 characters needed characters exceeded