NL032: Use of END/GET/BACKOUT TRANSACTION statements outside of Natural Program is strongly discouraged
NL032: Use of END/GET/BACKOUT TRANSACTION statements outside of Natural Program is strongly discouraged
type: code-smell
priority: major
#clumsy
#brain-overload
#confusing
#bad-practice
#pitfall
Description
Transaction logic should only be placed in Natural Programs, because this is the top layer of Natural objects. If you put them in other Natural objects, these can be called from other objects, and then you have little control over transaction logic, anymore.