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

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


   * @see com.catify.processengine.core.data.services.ClientNodeRepositoryService#delete(java.lang.String)
   */
  @Override
  public void delete(String uniqueClientId) {

    ClientNode clientNode = findByUniqueClientId(uniqueClientId);

    if (clientNode != null) {
      clientNodeRepository.delete(clientNode);
    }

View Full Code Here


   * @see com.catify.processengine.core.data.services.ClientNodeRepositoryService#getOrCreateClientNode(java.lang.String)
   */
  @Override
  public ClientNode getOrCreateClientNode(String uniqueClientId) {

    ClientNode node = findByUniqueClientId(uniqueClientId);

    if (node == null) {
      node = new ClientNode(uniqueClientId);
    }
    clientNodeRepository.save(node);

    return node;
  }
View Full Code Here

   */
  private void createEntities(String clientId, TProcess processJaxb,
      List<TFlowNode> flowNodesJaxb, List<TSequenceFlow> sequenceFlowsJaxb) {

    // 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)
View Full Code Here

    // FIXME: provide RootNode implementation
    // create root node or get it from the db
    RootNode rootNode = createRootContext();
   
    // create client node or get it from the db
    ClientNode clientNode = clientNodeRepositoryService
        .getOrCreateClientNode(clientId);

    LOG.debug(String.format("Added %s with grapId: %s to neo4j db",
        clientNode, clientNode.getGraphId()));

    // create relationship between root and client
    rootNode.addRelationshipToClientNode(clientNode);
    rootNodeRepositoryService.save(rootNode);
View Full Code Here

TOP

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

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.