cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Delay to the sub nodes in the mapping

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190293
Active Contributor

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.

former_member186851
Active Contributor
0 Kudos

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

former_member190293
Active Contributor
0 Kudos

Hi Raghu!

Isn't the requirement to delay subnodes parsing within message mapping? 🙂 Or am I wrong?

Regards, Evgeniy.

former_member186851
Active Contributor

Not Sure Eve.My understanding could be wrong.

I am understanding that message should be split and then delay is required for each message.

former_member190293
Active Contributor
0 Kudos

Yes, Raghu, maybe you're right and I may be wrong.