Documentation

Services

Tips > Use Jump

In case you have the same action in different scenarios or in different action branches, it might be a good idea to consider the Jump action.
The Jump action dispatches the processing of the request to an action in the tree, you can choose any action in the tree by action name, the processing is then resumes from that other action and continues till the end of the branch then the returns back to the jump action.
For example consider this scenario:

In this scenario actions (validate,ok,notify,update,delete) are executed in two branches, any changes have to be applied on both branches which is not practical
Now consider creating action group "Libraries" with a child called common, and move these duplicate actions to "common", then use the jump action to jump to the commons branch:

This is more elegent and more easier to maintain.
One important note is to disable the the main librarires action, otherwise it will get executed after the two scenarios.