public com.ebmwebsourcing.easyviper.core.api.engine.Engine getEngine() throws com.ebmwebsourcing.easyviper.core.api.CoreException { com.ebmwebsourcing.easyviper.core.api.engine.Engine ret = service.getEngine(); return ret; }
public com.ebmwebsourcing.easyviper.core.api.engine.Engine getEngine() 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.Engine ret = impl.getEngine(); return ret; }
private synchronized void onWaitTermination(Process p, WaitBehaviour b) { if(threads.containsKey(p)) { threads.get(p).remove(Thread.currentThread()); try { p.getEngine().onTimerFinish(new TimerFinishedEvent(p,b)); } catch (CoreException e) { // TODO maybe end the process or at least notify the engine e.printStackTrace(); addException(p, e); } } }
public void sendTo(final InternalMessage<?> message, final Endpoint endpoint, final Map<Endpoint, Map<String, ExternalContext>> context) throws CoreException { final com.ebmwebsourcing.easyviper.core.api.engine.Process p = this .getNode().getExecution().getParentScope().getProcess(); p.getEngine().sendTo(message, endpoint, context); }
public void sendTo(final InternalMessage<?> message, final Endpoint endpoint, final ExternalContext context) throws CoreException { final com.ebmwebsourcing.easyviper.core.api.engine.Process p = this .getNode().getExecution().getParentScope().getProcess(); p.getEngine().sendTo(message, endpoint, context); }
@Override public InternalMessage<?> sendSyncTo(final InternalMessage<?> request, final Endpoint endpoint, final Map<Endpoint, Map<String, ExternalContext>> context) throws CoreException { final com.ebmwebsourcing.easyviper.core.api.engine.Process p = this .getNode().getExecution().getParentScope().getProcess(); return p.getEngine().sendSyncTo(request, endpoint, context); }
public InternalMessage<?> sendSyncTo(final InternalMessage<?> request, final Endpoint endpoint, final ExternalContext context) throws CoreException { final com.ebmwebsourcing.easyviper.core.api.engine.Process p = this .getNode().getExecution().getParentScope().getProcess(); return p.getEngine().sendSyncTo(request, endpoint, context); }
if(e instanceof CoreException) { try { this.validProcessOrExecution.getParentScope().getProcess().getEngine() .getCore().getExternalEnvironment().getSenders().get(0).sendTo((CoreException)e, this.context);
try { if( handlers.size() == 0 ) { com.ebmwebsourcing.easyviper.core.api.engine.Engine ret = impl.getEngine(); return ret;
@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()); } } }