А missing link is already filled- a new event in the user business rules is now available. CREATE NEW.
Now you have access to the entire life cycle of an object. From its initial creation to the very end - on commit.
- CREATENEW --> We are here now.
- ATTRIBUTECHANGING / ATTRIBUTECHANGED
- (AGGREGATE CLIENT) COMMIT
You can see the whole picture now. This event triggers when the object is going to be created.
Yes, this isn't the most "wow" event (as a matter of use), but it fills a gap for many specific use cases. And most importantly- you now have a full control over the object's "life" events.
---
More information is available in our official documentation:
https://docs.erp.net/tech/advanced/user-business-rules/events/create-new.html
https://docs.erp.net/tech/advanced/user-business-rules/examples/sales-order-init-attribute.html
1 Comments