Skip to Content
avatar image
Former Member

Adding Delay to the sub nodes in the mapping

Hi

I have a scenario where I need to execute some nodes in sequence.

<MT_xyz>

-<Header1>

-<Header2>

-<Header3>

</MT_xyz>

I want the Header1 to get executed first and Header2 with a delay of 30sec.

In the other blogs and discussions I could only see the code(UDF to add thread.sleep) which delays the whole mapping execution by specified time, but I need it for sub nodal level as explained above.

Please help in this regard!

Thanks
Sowmya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 22, 2017 at 09:57 AM

    Hi Sowmya!

    First of all, where such a strange requirement is coming from? What is the meaning?

    Actually, it seems to me that this could be easily achieved by using SAX parser functionality along with thread.sleep() method.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 22, 2017 at 10:21 AM

    Hello Sowmya,

    If you wish to send the messages to target system with delay,You can try spiliting the messages in first flow like header1,header2,body.Then follow soap lookup back approach and use thread sleep for for header2 mappings and body mappings.

    Check the below link for the soap look back approach.

    https://blogs.sap.com/2015/01/28/multi-mapping-with-dynamic-configuration-soap-loopback-approach/

    Flows will be like.

    First message------Header1

    --------Header2

    ----------Body

    Second flow for each messages

    Header1----------------Target

    Header2-Delay in mapping-Target

    Body---Delay in mapping-Target

    Add comment
    10|10000 characters needed characters exceeded