public com.ebmwebsourcing.easyviper.core.api.engine.Scope getParentScope() throws com.ebmwebsourcing.easyviper.core.api.CoreException { com.ebmwebsourcing.easyviper.core.api.engine.Scope ret = service.getParentScope(); return ret; }
public com.ebmwebsourcing.easyviper.core.api.engine.Scope getParentScope() throws com.ebmwebsourcing.easyviper.core.api.CoreException { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } com.ebmwebsourcing.easyviper.core.api.engine.Scope ret = impl.getParentScope(); return ret; }
private Scope findFaultScope(Scope currentScope, Exception e) throws CoreException { Scope faultScope = null; // test if currentScope is not already a fault scope Exception exTest = null; Scope current = currentScope; while(exTest==null && current != null) { exTest = current.isFaultScope(); current = current.getParentScope(); } if(exTest == null) { for(Entry<Fault, Scope> entry: currentScope.getExceptions().entrySet()) { if(entry.getKey().getFaultHandler() != null && entry.getKey().getFaultHandler().match(currentScope, entry.getKey(), e, entry.getValue())) { faultScope = entry.getValue(); break; } } if(faultScope == null && currentScope.getParentScope() != null) { faultScope = this.findFaultScope(currentScope.getParentScope(), e); } } return faultScope; }
private Scope findFaultScope(Scope currentScope, Exception e) throws CoreException { Scope faultScope = null; // test if currentScope is not already a fault scope Exception exTest = null; Scope current = currentScope; while(exTest==null && current != null) { exTest = current.isFaultScope(); current = current.getParentScope(); } if(exTest == null) { for(Entry<Fault, Scope> entry: currentScope.getExceptions().entrySet()) { if(entry.getKey().getFaultHandler() != null && entry.getKey().getFaultHandler().match(currentScope, entry.getKey(), e, entry.getValue())) { faultScope = entry.getValue(); break; } } if(faultScope == null && currentScope.getParentScope() != null) { faultScope = this.findFaultScope(currentScope.getParentScope(), e); } } return faultScope; }
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start rethrow behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; // find exception Exception e = null; Scope currentScope = this.getNode().getExecution().getParentScope(); while(e==null && currentScope != null) { e = currentScope.isFaultScope(); currentScope = currentScope.getParentScope(); } if(e == null) { throw new CoreException("Impossible to find exception to rethrow"); } this.log.finest("execute rethrow behaviour: " + e.getClass()); if(!(e instanceof CoreException)) { throw new CoreException(e); } else { throw (CoreException)e; } }
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start rethrow behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; // find exception Exception e = null; Scope currentScope = this.getNode().getExecution().getParentScope(); while(e==null && currentScope != null) { e = currentScope.isFaultScope(); currentScope = currentScope.getParentScope(); } if(e == null) { throw new CoreException("Impossible to find exception to rethrow"); } this.log.finest("execute rethrow behaviour: " + e.getClass()); if(!(e instanceof CoreException)) { throw new CoreException(e); } else { throw (CoreException)e; } }
faultScope.setFaultScope(e); if(faultScope.getParentScope().getName().equals(this.execution.getParentScope().getName())) { getExecution().setNextExecutableElements(this, (Node)faultScope.getComponent(). getFcInterface("service")); faultScope.getParentScope().linkedExecution2ExecutableElement(faultScope.getParentScope().getExecution(), faultScope); faultScope.getParentScope().linkedExecutableElement2Execution(faultScope, faultScope.getParentScope().getExecution());
faultScope.setFaultScope(e); if(faultScope.getParentScope().getName().equals(this.execution.getParentScope().getName())) { getExecution().setNextExecutableElements(this, (Node)faultScope.getComponent(). getFcInterface("service")); faultScope.getParentScope().linkedExecution2ExecutableElement(faultScope.getParentScope().getExecution(), faultScope); faultScope.getParentScope().linkedExecutableElement2Execution(faultScope, faultScope.getParentScope().getExecution());
try { if( handlers.size() == 0 ) { com.ebmwebsourcing.easyviper.core.api.engine.Scope ret = impl.getParentScope(); return ret;
this.log.finest("this.getNode().getParentNode() = " + this.getNode().getParentNode()); this.log.finest("scope.getParentNode() = " + scope.getParentNode()); if(scope.getParentScope() != null) { scope.getParentScope().unlinkedNodeAndExecution(scope, exec);
this.log.finest("this.getNode().getParentNode() = " + this.getNode().getParentNode()); this.log.finest("scope.getParentNode() = " + scope.getParentNode()); Scope parentScope = scope.getParentScope(); if( parentScope != null ) {