Found a great sales report template but need to tweak the commission calculation logic. If I edit the JS nodes directly, I’ll lose the ability to merge updates from the original author. Is there a way to override methods without forking the entire workflow?
Use Latenode’s template inheritance. Extend the original template then override specific methods using class extensions in your private JS nodes. Keeps core logic pristine while adding custom biz rules.
I solved this by creating decorator functions that wrap the original methods. Added them in a separate JS node that runs before the template’s nodes. Lets me modify behavior without touching the source.
The proper approach involves the Open/Closed Principle. Latenode’s architecture allows creating new components that enhance existing templates through composition rather than modification. Maintain a layer of custom business rules that interact with but don’t alter the original template’s codebase.