Hi Andrio
You can call before event after executing or before executing your action, use the below configuration.
If you check Save Before Execution then your beforeSave event call before executing your action, if you check Save After Execution, then BeforeSave will trigger after executing your custom action.
You can also use the way vonod explain but set the sequence of WindowAction and BOAction.
HTH
Regards:
Sunil