public static boolean executesDefaultCompensationHandler ( PvmExecutionImpl scopeExecution ) { ActivityImpl currentActivity = scopeExecution . getActivity ( ) ; if ( currentActivity != null ) { return scopeExecution . isScope ( ) && currentActivity . isScope ( ) && ! scopeExecution . getNonEventScopeExecutions ( ) . isEmpty ( ) && ! isCompensationThrowing ( scopeExecution ) ; } else { return false ; } }
Determines whether an execution is responsible for default compensation handling .