}
public void completed(FaultData faultData, Set<CompensationHandler> compensations) {
if (faultData != null) {
if (!isScopeRetryable()) {
FaultData fault = createFault(getConstants().qnScopeRollback, faultData.getFaultMessage(), null, SCOPEACT.this._self.o);
_parent.completed(fault, CompensationHandler.emptySet());
_linkStatusInterceptor.val(false);
unlockAll(false);
} else {
unlockAll(true);
}
} else {
_parent.completed(faultData, compensations);
_linkStatusInterceptor.val(faultData == null);
unlockAll(false);
// no more listening
}
getBpelRuntime().setRetriedOnce();
}
public void failure(String reason, Element data) {
unlockAll(true);
if (!isScopeRetryable()) {
FaultData fault = createFault(getConstants().qnScopeRollback, data, null, SCOPEACT.this._self.o);
_parent.completed(fault, CompensationHandler.emptySet());
_linkStatusInterceptor.val(false);
}
}