Examples of ArchiveNode


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

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

    if (node == null) {
      node = new ArchiveNode(uniqueClientId);
    }
    archivedNodeRepository.save(node);

    return node;
  }
View Full Code Here

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

   * @param processJaxb the process jaxb
   * @return the process node
   */
  private ProcessNode createArchivedProcessNode(String clientId, ClientNode clientNode, TProcess processJaxb) {
    // create the archive node
    ArchiveNode archiveNode = archivedNodeRepositoryService
        .getOrCreateArchivedNode(clientId);
    clientNode.addRelationshipToArchivedProcessNode(archiveNode);
   
    LOG.debug(String.format("Added %s with grapId: %s to neo4j db",
        archiveNode, archiveNode.getGraphId()));
   
    // create the archived process node or get it from the db (eg. restart of
    // the process engine)
    ProcessNode archivedProcess = processRepositoryService
        .getOrCreateProcessNode(new ProcessNode(
            IdService.ARCHIVEPREFIX + IdService.getUniqueProcessId(clientId, processJaxb),
            processJaxb.getId(),
            processJaxb.getName(),
            ExtensionService.getTVersion(processJaxb).getVersion()));
   
    archiveNode.addRelationshipToProcessNode(archivedProcess);
    archivedNodeRepositoryService.save(archiveNode);
   
    LOG.debug(String.format("Added %s with grapId: %s to neo4j db",
        archivedProcess, archivedProcess.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.