Examples of DeploymentEntity


Examples of org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity

  }

  public Deployment execute(CommandContext commandContext) {

    acquireExclusiveLock(commandContext);
    DeploymentEntity deployment = initDeployment();
    Map<String, ResourceEntity> resourcesToDeploy = resolveResourcesToDeploy(commandContext, deployment);
    Map<String, ResourceEntity> resourcesToIgnore = new HashMap<String, ResourceEntity>(deployment.getResources());
    resourcesToIgnore.keySet().removeAll(resourcesToDeploy.keySet());

    if (!resourcesToDeploy.isEmpty()) {
      log.fine("Creating new deployment.");
      deployment.setResources(resourcesToDeploy);
      deploy(deployment);
    } else {
      log.fine("Using existing deployment.");
      deployment = getExistingDeployment(commandContext, deployment.getName());
    }

    scheduleProcessDefinitionActivation(commandContext, deployment);

    if(deploymentBuilder instanceof ProcessApplicationDeploymentBuilder) {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity

      commandContext.getPropertyManager().acquireExclusiveLock();
    }
  }

  protected DeploymentEntity initDeployment() {
    DeploymentEntity deployment = deploymentBuilder.getDeployment();
    deployment.setDeploymentTime(ClockUtil.getCurrentTime());
    return deployment;
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity

      CommandContext commandContext = Context.getCommandContext();

      for (String deploymentId : deploymentIds) {

        DeploymentEntity deployment = commandContext
          .getDbEntityManager()
          .selectById(DeploymentEntity.class, deploymentId);

        if(deployment != null) {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity

    return super.execute(engine, variableScope, bindings);
  }

  protected synchronized void loadScriptSource() {
    if (getScriptSource() == null) {
      DeploymentEntity deployment = Context.getCoreExecutionContext().getDeployment();
      String source = ResourceUtil.loadResourceContent(scriptResource, deployment);
      setScriptSource(source);
    }
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity

  @Before
  public void setup() {
    CmmnTransformer transformerWrapper = new CmmnTransformer(null, new DefaultCmmnElementHandlerRegistry(), null);
    transformer = new CmmnTransform(transformerWrapper);

    deployment = new DeploymentEntity();
    deployment.setId("aDeploymentId");

    transformer.setDeployment(deployment);

    modelInstance = Cmmn.createEmptyModel();
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity

      ExpressionManager expressionManager = context.getExpressionManager();
      Expression scriptResourceExpression = expressionManager.createExpression(resource);
      return new DynamicResourceExecutableScript(scriptResourceExpression, language);
    }
    else {
      DeploymentEntity deployment = (DeploymentEntity) context.getDeployment();
      String scriptSource = ResourceUtil.loadResourceContent(resource, deployment);
      return parseScript(scriptSource, language);
    }
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity

  }

  protected abstract String getDeploymentId();

  public DeploymentEntity getDeployment() {
    DeploymentEntity deployment = Context
      .getCommandContext()
      .getDeploymentManager()
      .findDeploymentById(getDeploymentId());
    return deployment;
  }
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.