public static boolean executesNonScopeCompensationHandler ( PvmExecutionImpl execution ) { ActivityImpl activity = execution . getActivity ( ) ; return execution . isScope ( ) && activity != null && activity . isCompensationHandler ( ) && ! activity . isScope ( ) ; }
With compensation we have a dedicated scope execution for every handler even if the handler is not a scope activity ; this must be respected when invoking end listeners etc .