Examples of RunningNode


Examples of com.catify.processengine.core.data.model.entities.RunningNode

  /* (non-Javadoc)
   * @see com.catify.processengine.core.data.services.RunningNodeRepositoryService#getOrCreateRunningNode(java.lang.String)
   */
  @Override
  public RunningNode getOrCreateRunningNode(String uniqueClientId) {
    RunningNode node = findByUniqueClientId(uniqueClientId);

    if (node == null) {
      node = new RunningNode(uniqueClientId);
    }
    runningNodeRepository.save(node);

    return node;
  }
View Full Code Here

Examples of com.catify.processengine.core.data.model.entities.RunningNode

   * @param processJaxb the process jaxb
   * @return the process node
   */
  private ProcessNode createRunningProcessNode(String clientId, ClientNode clientNode, TProcess processJaxb) {
    // create the running node
    RunningNode runningNode = runningNodeRepositoryService
        .getOrCreateRunningNode(clientId);
    clientNode.addRelationshipToRunningProcessNode(runningNode);

    clientNodeRepositoryService.save(clientNode);
   
    LOG.debug(String.format("Added %s with grapId: %s to neo4j db",
        runningNode, runningNode.getGraphId()));
   
    // create the running process node or get it from the db (eg. restart of
    // the process engine)
    ProcessNode runningProcess = processRepositoryService
        .getOrCreateProcessNode(new ProcessNode(
            IdService.getUniqueProcessId(clientId, processJaxb),
            processJaxb.getId(),
            processJaxb.getName(),
            ExtensionService.getTVersion(processJaxb).getVersion()));
   
    runningNode.addRelationshipToProcessNode(runningProcess);
    runningNodeRepositoryService.save(runningNode);
   
    LOG.debug(String.format("Added %s with grapId: %s to neo4j db",
        runningProcess, runningProcess.getGraphId()));
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.