March 2020
Intermediate to advanced
534 pages
14h 15m
English
When developing business events we must consider any performance impact the event might cause. As part of the send method, the contract is initialized and serialized to a JSON string. We therefore only want this code to run if required.
We can wrap the call to this using the following code:
if (BusinessEventsConfigurationReader::isBusinessEventEnabled(classStr(ConPIBOMApprovedBusinessEvent))){}
This will reduce the impact if the current company does not have the event configured. The other important factor is that the business event payload must be as small as possible, and having a nested payload would usually be avoided. Should a large payload be required, consider using the business event to simply let the target know that ...
Read now
Unlock full access