Hello experts,
Good morning.
I tried to explored business events but I have few points, for that I needs your guidance :
1. I have written below code to trigger business event, just wanted to check - do we need to write try/catch block to handle exception or standard business event framework would handle (inventBusinessEvent.send() ) ?
Example
inventBusinessEvent = XXXBusinessEvent::newFromInventTrans(inventTable);
if(inventBusinessEvent )
{
inventBusinessEvent.send();
}
2. if my understanding is correct, If any exception made, than exception would be logged into business event error log
Please advice.
3. For the unit testing, what are the possible ways to made business event error out so that I could check, for business event failure any log maintain in business event log or not?
4. we have any job to resend business event log ?
Many thanks in advance.
Regards | Priya