Package com.catify.processengine.core.data.model.entities

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


   * @see com.catify.processengine.core.data.services.ProcessRepositoryService#getOrCreateProcessNode(com.catify.processengine.core.data.model.entities.ProcessNode)
   */
  @Override
  public ProcessNode getOrCreateProcessNode(ProcessNode proposedProcessNode) {
   
    ProcessNode existingProcess = findByUniqueProcessId(proposedProcessNode.getUniqueProcessId());
   
    if (existingProcess == null) {
      return this.save(proposedProcessNode);
    }

View Full Code Here


  /* (non-Javadoc)
   * @see com.catify.processengine.core.data.services.ProcessRepositoryService#delete(java.lang.String)
   */
  @Override
  public boolean delete(String uniqueProcessId) {
    ProcessNode process = findByUniqueProcessId(uniqueProcessId);

    if (process != null) {
      processRepository.delete(process);
      return true;
    } else {
View Full Code Here

      FlowNode archivedFlowNode = flowNodeRepositoryService.findArchivedByRunningUniqueFlowNodeId(flowNodeId);
      flowNodeInstance.moveToArchive(archivedFlowNode, processInstanceId);
    }
   
    // save the process instance node to the archived process node
    ProcessNode archivedProcessNode = processRepositoryService.findArchivedByRunningUniqueProcessId(uniqueProcessId);
    ProcessInstanceNode processInstanceNode = loadProcessInstanceNode(uniqueProcessId, processInstanceId);

    processInstanceNode.moveInstanceToArchive(archivedProcessNode, processInstanceId);
   
    processInstanceNode.setProcessInstanceEndTime(endTime);
View Full Code Here

    // create the client context
    ClientNode clientNode = this.createClientContext(clientId);

    // create the running process node or get it from the db (eg. restart of the process engine)
    ProcessNode runningProcess = this.createRunningProcessNode(clientId, clientNode, processJaxb);
   
    // create the archived process node or get it from the db (eg. restart of the process engine)
    ProcessNode archivedProcess = this.createArchivedProcessNode(clientId, clientNode, processJaxb);

    // create the flow nodes (database and runtime)
    this.createFlowNodes(clientId, processJaxb, new ArrayList<TSubProcess>(), flowNodesJaxb, sequenceFlowsJaxb, runningProcess,
        archivedProcess);
View Full Code Here

    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()));
   
    return runningProcess;
  }
View Full Code Here

    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()));
   
    return archivedProcess;
  }
View Full Code Here

TOP

Related Classes of com.catify.processengine.core.data.model.entities.ProcessNode

Copyright © 2018 www.massapicom. 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.