@Override Node fetchVariableData(VariableInstance variable, boolean forWriting) throws FaultException { try { return super.fetchVariableData(variable, forWriting); } catch (FaultException fe) { if (forWriting) { fe = new FaultException(fe.getQName(), fe.getMessage(), new Throwable("throwUninitializedToVariable")); } throw fe; } }
public void completed(FaultData faultData, Set<CompensationHandler> compensations) { sendEvent(new ActivityExecEndEvent()); if (faultData != null) { dpe(_oactivity.sourceLinks); _self.parent.completed(faultData, compensations); } else { FaultData fault = null; for (Iterator<OLink> i = _oactivity.sourceLinks.iterator();i.hasNext();) { OLink olink = i.next(); LinkInfo linfo = _linkFrame.resolve(olink); try { boolean val = evaluateTransitionCondition(olink.transitionCondition); linfo.pub.linkStatus(val); } catch (FaultException e) { linfo.pub.linkStatus(false); __log.error(e); if (fault == null) fault = createFault(e.getQName(),olink.transitionCondition); } } _self.parent.completed(fault, compensations); } }
} catch (FaultException fault) { if (aCopy.ignoreMissingFromData) { if (fault.getQName().equals(getOAsssign().getOwner().constants.qnSelectionFailure) && (fault.getCause() != null && "ignoreMissingFromData".equals(fault.getCause().getMessage()))) { continue; if (fault.getQName().equals(getOAsssign().getOwner().constants.qnUninitializedVariable) && (fault.getCause() == null || !"throwUninitializedToVariable".equals(fault.getCause().getMessage()))) { continue; faultData = createFault(fault.getQName(), aCopy, fault .getMessage()); break;
public void run() { Calendar alarm = Calendar.getInstance(); if (_oalarm.forExpr != null) try { getBpelRuntimeContext().getExpLangRuntime().evaluateAsDuration(_oalarm.forExpr, getEvaluationContext()).addTo(alarm); } catch (EvaluationException e) { throw new InvalidProcessException(e); } catch (FaultException e) { __log.error(e); _psc.completed(createFault(e.getQName(),_oalarm.forExpr), _comps); return; } else if (_oalarm.untilExpr != null) try { alarm.setTime(getBpelRuntimeContext().getExpLangRuntime().evaluateAsDate(_oalarm.untilExpr, getEvaluationContext()).getTime()); } catch (EvaluationException e) { throw new InvalidProcessException(e); } catch (FaultException e) { __log.error(e); _psc.completed(createFault(e.getQName(),_oalarm.untilExpr), _comps); return; } // We reduce to waiting for the alarm to be triggered. instance(new WAIT(alarm)); }
faultData = createFault(e.getQName(), ocase); _self.parent.completed(faultData, CompensationHandler.emptySet());
public void run() { FaultData fault = null; if(_othrow.faultVariable != null){ try { sendVariableReadEvent(_scopeFrame.resolve(_othrow.faultVariable)); Node faultVariable = fetchVariableData(_scopeFrame.resolve(_othrow.faultVariable), false); fault = createFault(_othrow.faultName, (Element)faultVariable,_othrow.faultVariable.type,_othrow); } catch (FaultException e) { // deal with this as a fault (just not the one we hoped for) __log.error(e); fault = createFault(e.getQName(), _othrow); } }else{ fault = createFault(_othrow.faultName, _othrow); } _self.parent.completed(fault, CompensationHandler.emptySet()); } }
} catch (FaultException e) { __log.error(e); fault = createFault(e.getQName(), oreply);
public void run() { boolean condResult = false; try { condResult = checkCondition(); } catch (FaultException fe) { __log.error(fe); _self.parent.completed(createFault(fe.getQName(), _self.o),_compHandlers); return; } if (condResult) { ActivityInfo child = new ActivityInfo(genMonotonic(), getOWhile().activity, newChannel(TerminationChannel.class), newChannel(ParentScopeChannel.class)); instance(createChild(child, _scopeFrame, _linkFrame)); instance(new WAITER(child)); } else /* stop. */ { _self.parent.completed(null, _compHandlers); } }
} catch (FaultException e) { __log.error(e); FaultData fault = createFault(e.getQName(), _opick, e.getMessage()); dpe(_opick.outgoingLinks); _self.parent.completed(fault, CompensationHandler.emptySet());
} catch (FaultException fe) { __log.error(fe); _self.parent.completed(createFault(fe.getQName(), _self.o), _compHandlers); return;
} catch (FaultException e) { __log.error(e); FaultData fault = createFault(e.getQName(), _oinvoke); _self.parent.completed(fault, CompensationHandler.emptySet()); return; FaultData faultData = createFault(fault.getQName(), _oinvoke, fault.getMessage()); _self.parent.completed(faultData, CompensationHandler.emptySet());
__log.error(e); if (_fault == null) { _fault = createFault(e.getQName(), _oevent);
__log.error(e); if (_fault == null) { _fault = createFault(e.getQName(), _oevent); terminateActive();