public void flushMessagesInRegistry() throws CoreException { this.log.finest("flush stored messages"); AutoFlushMessageServiceImpl autoflush = this.serviceManager.getService(AutoFlushMessageServiceImpl.class); autoflush.flushMessagesInRegistry(); }
public void activateService( Class<? extends Service> serviceClass) throws CoreException { Service service = findService(serviceClass); if(service != null && service.getRefreshFrequency() > 0) { log.finest("this service is activated: " + serviceClass.getSimpleName()); scheduledThreadPoolExecutor.setCorePoolSize(this.services.size()); scheduledThreadPoolExecutor.scheduleWithFixedDelay(service, 0, 1, TimeUnit.MILLISECONDS); } else { log.warning("Impossible to find this service: " + serviceClass.getSimpleName()); } }
AutoFlushMessageService autoFlush = engine.getServiceManager().getService(AutoFlushMessageServiceImpl.class); autoFlush.setRefreshFrequency(conf.getAutoFlushMessageFrequency()); engine.getServiceManager().activateService(AutoFlushMessageServiceImpl.class); AutoTrashProcessService autoTrash = engine.getServiceManager().getService(AutoTrashProcessServiceImpl.class); autoTrash.setRefreshFrequency(conf.getAutoTrashProcessFrequency()); engine.getServiceManager().activateService(AutoTrashProcessServiceImpl.class); engine.getServiceManager().addService(s);
AutoFlushMessageService autoFlush = engine.getServiceManager().getService(AutoFlushMessageServiceImpl.class); autoFlush.setRefreshFrequency(conf.getAutoFlushMessageFrequency()); engine.getServiceManager().activateService(AutoFlushMessageServiceImpl.class); AutoTrashProcessService autoTrash = engine.getServiceManager().getService(AutoTrashProcessServiceImpl.class); autoTrash.setRefreshFrequency(conf.getAutoTrashProcessFrequency()); engine.getServiceManager().activateService(AutoTrashProcessServiceImpl.class); engine.getServiceManager().addService(s);
if(core.getEngine().getServiceManager().getService(ExtendedActivityServiceImpl.class) == null) { core.getEngine().getServiceManager().addService(ExtendedActivityServiceImpl.class);
processes.remove(process); it = processes.iterator(); AutoTrashProcessService autoTrash = this.serviceManager.getService(AutoTrashProcessServiceImpl.class); autoTrash.addUninstableProcessInstance(process);
public void flushMessagesInRegistry() throws CoreException { this.log.finest("flush stored messages"); AutoFlushMessageServiceImpl autoflush = this.serviceManager.getService(AutoFlushMessageServiceImpl.class); autoflush.flushMessagesInRegistry(); }
public void activateService( Class<? extends Service> serviceClass) throws CoreException { Service service = findService(serviceClass); if(service != null && service.getRefreshFrequency() > 0) { log.finest("this service is activated: " + serviceClass.getSimpleName()); scheduledThreadPoolExecutor.setCorePoolSize(this.services.size()); scheduledThreadPoolExecutor.scheduleWithFixedDelay(service, 0, 1, TimeUnit.MILLISECONDS); } else { log.warning("Impossible to find this service: " + serviceClass.getSimpleName()); } }
processes.remove(process); it = processes.iterator(); AutoTrashProcessService autoTrash = this.serviceManager.getService(AutoTrashProcessServiceImpl.class); autoTrash.addUninstableProcessInstance(process);
AutoFlushMessageServiceImpl autoflush = this.serviceManager.getService(AutoFlushMessageServiceImpl.class); autoflush.addMessagesInRegistry(internalMessage, context); } else {
&& bpelprocess.getExtensions().getExtensions().size() > 0) { Service service = this.getModel().getCore().getEngine() .getServiceManager().getService( ExtendedActivityServiceImpl.class); if (service == null) {
public synchronized void accept(final InternalMessage<?> internalMessage, final ExternalContext context) throws CoreException { if (this.internalMessageType == null) { throw new CoreException( "Configuration error: The type of internal message must be setted"); } this.checkModel(); // load the good instance Execution validExecution = this.acceptInternalMessage(internalMessage, context); if (validExecution == null) { this.log.finest("no process found => store the received message"); AutoFlushMessageServiceImpl autoflush = this.serviceManager.getService(AutoFlushMessageServiceImpl.class); autoflush.addMessagesInRegistry(internalMessage, context); } else { // set the context //TODO Check Reflexion on what is a context (implements equality ...) Endpoint endpoint = findEndpointFromMessage(internalMessage, validExecution.getParentScope().getProcess());//this.getProcessInstanceRegistry()); if(validExecution.getParentScope().getProcess().getExternalContext(endpoint, internalMessage.getOperationName()) == null){ this.log.finest("set the context: " + context + " into process instance " + validExecution.getParentScope().getProcess().getName()); validExecution.getParentScope().getProcess().addExternalContext(endpoint, internalMessage.getOperationName(), context); } // restart threads for all necessary executions. restartExecutionAndParents(validExecution,context); } }
ExtendedActivityService service = null; try { service = BPELFactoryImpl.getCore().getEngine().getServiceManager().getService(ExtendedActivityServiceImpl.class); } catch (CoreException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException("Impossible to analyze extended activity in extension activity !!!", e)));