cancel
Showing results for 
Search instead for 
Did you mean: 

How to wait and re trigger when exception raised from a UDF in message mapping.

Former Member
0 Kudos

I have IDOC to SOAP scenario. Idoc sent from ECC comes to PI and using a UDF a connection ID is fetched. When no connection Id is fetched a runtime exception is thrown using another UDF.

i dont want to create BPM to catch exception and wait.

Please suggest me what can be done to handle it?

Accepted Solutions (0)

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

> How to wait to re trigger in UDF. Please search online for Thread sleep codes. There are plenty of code examples available. The below is just sample.

You might want to use the Thread class with sleep method.

try{

      Thread.sleep(1000);  // This 1000 represents wait time in milliseconds.

}catch(java.lang.InterruptedException ex){

ex.printStackTrace();

}

Former Member
0 Kudos

Hi,

You may use a combination of thread.sleep as suggested by Baskar

and

throw new RuntimeException("No input Value");

Thanks,

Sudhansu

Former Member
0 Kudos

Hi, you can restart failed messages with a scheduled background job in PI for program RSXMB_RESTART_MESSAGES.

Best regards, Martin