Problem
When a change is saved, a follow-up operation is to be performed that updates other model parts based on the saved change.
The follow-up operation should take place in the same transaction as the change. It is still questionable whether there should also be follow-up operations in a separate follow-up transaction.
A confirmation before executing the Apply command would also be helpful.
Should
Possibility to specify an expression that contains the changed model as a parameter and describes further operations. This expression should be applied in the Apply transaction.
Possibility to configure a confirmation message for the Apply command.
Implementation
If you want to have an additional operation in the Apply (or a confirmation message), you must select the additional button "Apply with TL script", which overwrites the standard Apply.
Test
- Technical demo:Components:Command executability, setting the "Cancel" flag causes the state to switch to "Canceled" when saving. The state transition is formulated as an add-on to the apply handler. At the same time, there is a customized confirm message if the "cancel" flag is set.