Hello,
with your question you address a topic we are currently working on.
If you need the functionality for you current application my proposal is
- change the modifiers of the method processInsertAction and processRemoveAction of the ModuleTag (private → protected).
- overwrite the methods if you want to control insert and delete actions for sub-node of a loop. Just copy the code of the methods and insert a check before
np.insert(idx);
or
np.remove(idx);
Remark: np.get(idx) returns the node from the node page which has to be removed or ? after an insert ? the new node.
If you have time to wait for our next version, we will provide a Plug-In concept. This means, the methods processInsert/RemoveAction will be not longer part of the ModuleTag. The functionality is implemented by a Standard Plugin. If you need adaptations for business logic like controlling the insertion / deletion of sub-nodes, you can overwrite the standard functionality or plug in own element actions (e.g. checkedInsert or checkedRemove).
If you overwrite the methods of the ModuleTag, you have to move the check functionality into a plug-in when adapting your application to the next version of X-Application.
Therefore, it would be helpful if you could post your check functionality into the community. Then, we could check our current plug-in concept with your use case. We could give you an outlook how the code would look like with the plug-in concept and you could review our proposal.
Is this approach ok for you?
Thanks,
Christian.
#API-Management#Tamino#webMethods