Package org.camunda.bpm.engine.impl.cmmn.entity.repository

Examples of org.camunda.bpm.engine.impl.cmmn.entity.repository.CaseDefinitionManager


    }
    return caseDefinitionId;
  }

  protected void loadCaseDefinitions(DeploymentEntity deployment, Collection<CaseDefinitionEntity> caseDefinitions) {
    CaseDefinitionManager caseDefinitionManager = Context
        .getCommandContext()
        .getCaseDefinitionManager();

    for (CaseDefinitionEntity caseDefinition : caseDefinitions) {

      String key = caseDefinition.getKey();

      String deploymentId = deployment.getId();
      caseDefinition.setDeploymentId(deploymentId);

      CaseDefinitionEntity persistedCaseDefinition = caseDefinitionManager.findCaseDefinitionByDeploymentAndKey(deploymentId, key);

      String caseDefinitionId = persistedCaseDefinition.getId();
      caseDefinition.setId(caseDefinitionId);

      int version = persistedCaseDefinition.getVersion();
View Full Code Here


      deployment.addDeployedArtifact(caseDefinition);
    }
  }

  protected void persistCaseDefinitions(DeploymentEntity deployment, Collection<CaseDefinitionEntity> caseDefinitions) {
    CaseDefinitionManager caseDefinitionManager = Context
        .getCommandContext()
        .getCaseDefinitionManager();

    for (CaseDefinitionEntity caseDefinition : caseDefinitions) {

      String deploymentId = deployment.getId();
      caseDefinition.setDeploymentId(deploymentId);

      String key = caseDefinition.getKey();
      CaseDefinitionEntity latestCaseDefinition = caseDefinitionManager.findLatestCaseDefinitionByKey(key);

      int version = getNextVersion(caseDefinition, latestCaseDefinition);
      caseDefinition.setVersion(version);

      String caseDefinitionId = generateCaseDefinitionId(caseDefinition);
      caseDefinition.setId(caseDefinitionId);

      caseDefinitionManager.insertCaseDefinition(caseDefinition);

      // Add to cache
      addCaseDefinitionToDeploymentCache(caseDefinition);

      // Add to deployment for further usage
View Full Code Here

    }
    return caseDefinitionId;
  }

  protected void loadCaseDefinitions(DeploymentEntity deployment, Collection<CaseDefinitionEntity> caseDefinitions) {
    CaseDefinitionManager caseDefinitionManager = Context
        .getCommandContext()
        .getCaseDefinitionManager();

    for (CaseDefinitionEntity caseDefinition : caseDefinitions) {

      String key = caseDefinition.getKey();

      String deploymentId = deployment.getId();
      caseDefinition.setDeploymentId(deploymentId);

      CaseDefinitionEntity persistedCaseDefinition = caseDefinitionManager.findCaseDefinitionByDeploymentAndKey(deploymentId, key);

      String caseDefinitionId = persistedCaseDefinition.getId();
      caseDefinition.setId(caseDefinitionId);

      int version = persistedCaseDefinition.getVersion();
View Full Code Here

      deployment.addDeployedArtifact(caseDefinition);
    }
  }

  protected void persistCaseDefinitions(DeploymentEntity deployment, Collection<CaseDefinitionEntity> caseDefinitions) {
    CaseDefinitionManager caseDefinitionManager = Context
        .getCommandContext()
        .getCaseDefinitionManager();

    for (CaseDefinitionEntity caseDefinition : caseDefinitions) {

      String deploymentId = deployment.getId();
      caseDefinition.setDeploymentId(deploymentId);

      String key = caseDefinition.getKey();
      CaseDefinitionEntity latestCaseDefinition = caseDefinitionManager.findLatestCaseDefinitionByKey(key);

      int version = getNextVersion(caseDefinition, latestCaseDefinition);
      caseDefinition.setVersion(version);

      String caseDefinitionId = generateCaseDefinitionId(caseDefinition);
      caseDefinition.setId(caseDefinitionId);

      caseDefinitionManager.insertCaseDefinition(caseDefinition);

      // Add to cache
      addCaseDefinitionToDeploymentCache(caseDefinition);

      // Add to deployment for further usage
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.cmmn.entity.repository.CaseDefinitionManager

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.