public java.lang.String getName() { java.lang.String ret = service.getName(); return ret; }
public java.lang.String getName() { 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."); } java.lang.String ret = impl.getName(); return ret; }
public void storeProcessInstance(final ProcessKey key, final Process process) throws CoreException { List<Process> processNames = this.map.get(key); if (processNames == null) { processNames = new ArrayList<Process>(); this.map.put(key, processNames); } processNames.add(process); this.log.finest("instance stored: key = " + key + " - process: " + process.getName()); this.log.finest("Number of process in key \"" + key + "\" : " + processNames.size()); }
public void storeProcessInstance(final ProcessKey key, final Process process) throws CoreException { List<Process> processNames = this.map.get(key); if (processNames == null) { processNames = new ArrayList<Process>(); this.map.put(key, processNames); } processNames.add(process); this.log.finest("instance stored: key = " + key + " - process: " + process.getName()); this.log.finest("Number of process in key \"" + key + "\" : " + processNames.size()); }
for(Process p: processes) { if(proc == null) { proc = p.getName(); } else { proc = proc + ", " + p.getName(); log.finest("test process: " + process.getName()); this.log.finest("reinit and restart an older instance: " + process.getName()); process.end(true); this.log.finest("reinit and restart an older instance: " + process.getName()); .finest("available instance found => restart the process " + process.getName()); process.setState(Process.State.PROCESS_ACTIVE); this.log.severe("Error injecting a message in process " + process.getName() + ": " + e.getMessage());
try { if(p.getNumberOfClean() == NUMBER_OF_CLEAN_BEFORE_DELETING) { log.warning("try to delete instance: " + p.getProcessInstance().getName()); SCAHelper.getSCAHelper().stopComponent(p.getProcessInstance().getComponent()); SCAHelper.getSCAHelper().deleteComponent(p.getProcessInstance().getComponent()); } else { log.warning("try to clean instance: " + p.getProcessInstance().getName()); p.getProcessInstance().end(true); List<ProcessKey> keys = p.getProcessInstance().getProcessKeys(); log.warning("impossible to ended this instance: " + p.getProcessInstance().getName()); this.list.add(p); } catch (SCAException e) { p.setNumberOfClean(p.getNumberOfClean() + 1); log.warning("impossible to ended this instance: " + p.getProcessInstance().getName()); this.list.add(p);
try { if(p.getNumberOfClean() == NUMBER_OF_CLEAN_BEFORE_DELETING) { log.warning("try to delete instance: " + p.getProcessInstance().getName()); SCAHelper.getSCAHelper().stopComponent(p.getProcessInstance().getComponent()); SCAHelper.getSCAHelper().deleteComponent(p.getProcessInstance().getComponent()); } else { log.warning("try to clean instance: " + p.getProcessInstance().getName()); p.getProcessInstance().end(true); List<ProcessKey> keys = p.getProcessInstance().getProcessKeys(); log.warning("impossible to ended this instance: " + p.getProcessInstance().getName()); this.list.add(p); } catch (SCAException e) { p.setNumberOfClean(p.getNumberOfClean() + 1); log.warning("impossible to ended this instance: " + p.getProcessInstance().getName()); this.list.add(p);
try { if(p.getNumberOfClean() == NUMBER_OF_CLEAN_BEFORE_DELETING) { log.warning("try to delete instance: " + p.getProcessInstance().getName()); FractalHelper.getFractalHelper().stopComponent(p.getProcessInstance().getComponent()); FractalHelper.getFractalHelper().deleteComponent(p.getProcessInstance().getComponent()); } else { log.warning("try to clean instance: " + p.getProcessInstance().getName()); p.getProcessInstance().end(true); List<ProcessKey> keys = p.getProcessInstance().getProcessKeys(); p.setNumberOfClean(p.getNumberOfClean() + 1); try { log.warning("impossible to ended this instance: " + p.getProcessInstance().getName()); } catch (CoreException e1) {
this.log.finest("try to inject message in process " + process.getName() + " using execution " + exec.getName()); if (exec.getCurrentTarget() instanceof Node) { final Node node = (Node) exec.getCurrentTarget();
public void deleteProcess(final Process process) throws CoreException { try { SCAExtendedContentController parentContentController = (SCAExtendedContentController) process.getParentExecution().getComponent().getFcInterface(SCAContentController.NAME); parentContentController.releaseFcContent(process.getComponent(), true); } catch (NoSuchInterfaceException e) { throw new CoreException("Delete process "+process.getName()+ "failed. Caused by "+e.getMessage()); } }
this.log.finest("try to inject message in process " + process.getName() + " using execution " + exec.getName()); if (exec.getCurrentTarget() instanceof Node) { final Node node = (Node) exec.getCurrentTarget();
public Process findProcessFromName(String processInstanceName){ Process p = null; ProcessKey key = new ProcessKeyImpl(); QName processDefinitionName = extractProcessDefinitionName(processInstanceName); try { key = this.getCore().getModel().getRegistry().findProcessKey(processDefinitionName); List<Process> processInstances = this.getProcessInstanceRegistry().getProcessInstances(key); for(Process process : processInstances){ if(process.getName().equals(processInstanceName)){ p = process; break; } } }catch (CoreException e) { e.printStackTrace(); } return p; }
+ (processDefinition).getName());
public void setStateRecursively(final State state) { // TODO : in the case we set recursively SUSPENDED state, // there is a chance that a parent execution becomes SUSPENDED // whereas some child execution are still ACTIVE. // Instead of that, we should mark a parent execution as SUSPENDED // if and only if all child executions are ENDED or SUSPENDED. this.setState(state); try { if (!this.getParentScope().getName().equals( this.getParentScope().getProcess().getName())) { Execution parentScopeExecution = this.getParentScope().getExecution(); parentScopeExecution.setStateRecursively(state); } else if (getParentExecution() != null) { getParentExecution().setStateRecursively(state); } } catch (CoreException e) { log.severe("error: " + e.getMessage()); // do nothing } }
public void setStateRecursively(final State state) { // TODO : in the case we set recursively SUSPENDED state, // there is a chance that a parent execution becomes SUSPENDED // whereas some child execution are still ACTIVE. // Instead of that, we should mark a parent execution as SUSPENDED // if and only if all child executions are ENDED or SUSPENDED. this.setState(state); try { if (!this.getParentScope().getName().equals( this.getParentScope().getProcess().getName())) { Execution parentScopeExecution = this.getParentScope().getExecution(); if(parentScopeExecution!=null) { parentScopeExecution.setStateRecursively(state); } } else if (getParentExecution() != null) { getParentExecution().setStateRecursively(state); } } catch (CoreException e) { log.severe("error: " + e.getMessage()); // do nothing } }
this.log.finest("set the context: " + context + " into process instance " + validExecution.getParentScope().getProcess().getName()); validExecution.getParentScope().getProcess().setExternalContext( context);
try { if( handlers.size() == 0 ) { java.lang.String ret = impl.getName(); return ret;
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); } }