public void setState(final com.ebmwebsourcing.easyviper.core.api.engine.Execution.State arg0) { service.setState(arg0); }
public void setState(final com.ebmwebsourcing.easyviper.core.api.engine.Execution.State arg0) { 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."); } impl.setState(arg0); }
public void setState(final com.ebmwebsourcing.easyviper.core.api.engine.Execution.State arg0) { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[2]); try { if( handlers.size() == 0 ) { impl.setState(arg0); } else { org.objectweb.fractal.api.Component comp = getFcComponent(); org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,comp,itf,impl,METHODS[2],(Object)arg0); ijp.proceed(); Object ret = null; } } catch( Throwable t ) { if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
@Override public synchronized void onChildBehaviourNotification(Behaviour childBehaviour) throws CoreException { if(alreadyNotified) { return; } alreadyNotified = true; log.finest("Notification received from "+childBehaviour.getName()); //cancel all the other child executions String execName = childBehaviour.getNode().getExecution().getName(); for(Execution childExec : getNode().getExecution().getChildExecutions()) { if(!execName.equals(childExec.getName())) { log.finest(childExec.getName()+" has been cancelled"); childExec.setState(Execution.State.CANCELLED); getNode().getExecution().removeChildExecution(childExec); } } }
this.context); } catch (CoreException e1) { this.validProcessOrExecution.setState(Execution.State.ENDED); try { this.validProcessOrExecution.end();
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start breakpoint behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; DebugBehaviour debug = DebugUtil.findDebugBehaviour(this.getNode().getExecution().getParentScope().getProcess()); if (debug != null) { this.log.finest("is debug mode? " + debug.isActivate()); } else { this.log.finest("is debug mode? false - no debug behaviour found"); } if (debug != null && debug.isActivate()) { this.getNode().getExecution().setState( Execution.State.SUSPENDED); this.log.finest("breakpoint behaviour: suspend the execution " + this.getNode().getExecution().getName() + " => " + this.getNode().getExecution().getState()); this.getNode().selectDefaultNextTarget(); } }
try { if( handlers.size() == 0 ) { impl.setState(arg0);
@Override public void run() { try { if (validProcessOrExecution.isStepByStep()) { validProcessOrExecution.runStepByStep(); } else { validProcessOrExecution.run(); } } catch (Exception e) { if(e instanceof CoreException) { try { this.validProcessOrExecution.getParentScope().getProcess().getEngine().getCore().getExternalEnvironment().getSenders().get(0).sendTo((CoreException)e, context); } catch (CoreException e1) { this.validProcessOrExecution.setState(Execution.State.ENDED); try { this.validProcessOrExecution.end(); } catch (CoreException e2) { e1.printStackTrace(); log.severe(e1.getMessage()); } e1.printStackTrace(); log.severe(e1.getMessage()); } } else { e.printStackTrace(); log.severe(e.getMessage()); } } }
} else { exec = (Execution) execComp.getFcInterface("service"); exec.setState(Execution.State.ACTIVE);
exec.setState(Execution.State.ACTIVE);