当前位置: 首页>>代码示例>>Java>>正文


Java Deployer类代码示例

本文整理汇总了Java中org.camunda.bpm.engine.impl.persistence.deploy.Deployer的典型用法代码示例。如果您正苦于以下问题:Java Deployer类的具体用法?Java Deployer怎么用?Java Deployer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Deployer类属于org.camunda.bpm.engine.impl.persistence.deploy包,在下文中一共展示了Deployer类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDefaultDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
protected Collection<? extends Deployer> getDefaultDeployers() {
  List<Deployer> defaultDeployers = new ArrayList<Deployer>();

  BpmnDeployer bpmnDeployer = getBpmnDeployer();
  defaultDeployers.add(bpmnDeployer);

  if (isCmmnEnabled()) {
    CmmnDeployer cmmnDeployer = getCmmnDeployer();
    defaultDeployers.add(cmmnDeployer);
  }

  if (isDmnEnabled()) {
    DecisionRequirementsDefinitionDeployer decisionRequirementsDefinitionDeployer = getDecisionRequirementsDefinitionDeployer();
    DecisionDefinitionDeployer decisionDefinitionDeployer = getDecisionDefinitionDeployer();
    // the DecisionRequirementsDefinition cacheDeployer must be before the DecisionDefinitionDeployer
    defaultDeployers.add(decisionRequirementsDefinitionDeployer);
    defaultDeployers.add(decisionDefinitionDeployer);
  }

  return defaultDeployers;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:22,代码来源:ProcessEngineConfigurationImpl.java

示例2: addSubscriptionsFromPreviousVersion

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
protected void addSubscriptionsFromPreviousVersion(ProcessDefinitionEntity processDefinition) {
  //we don't want to take the process definition from deployment cache, as it can have inconsistent value in "deleted" flag
  //instead we take it from DbEntityCache (or the database)
  String previousProcessDefinitionId = processDefinition.getPreviousProcessDefinitionId();
  if (previousProcessDefinitionId != null) {
    ProcessDefinitionEntity previousDefinition = findLatestProcessDefinitionById(previousProcessDefinitionId);

    //if not deleted, than add event subscriptions
    if (previousDefinition != null && !previousDefinition.isDeleted()) {
      ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
      DeploymentCache deploymentCache = configuration.getDeploymentCache();
      previousDefinition = deploymentCache.resolveProcessDefinition(previousDefinition);

      List<Deployer> deployers = configuration.getDeployers();
      for (Deployer deployer : deployers) {
        if (deployer instanceof BpmnDeployer) {
          ((BpmnDeployer) deployer).addEventSubscriptions(previousDefinition);
        }
      }
    }
  }
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:23,代码来源:ProcessDefinitionManager.java

示例3: preInit

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
@Override
public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
  super.preInit(processEngineConfiguration);
  final List<Deployer> customPostDeployers = processEngineConfiguration.getCustomPostDeployers();
  if (customPostDeployers == null) {
    processEngineConfiguration.setCustomPostDeployers(new ArrayList<Deployer>());
  }
  processEngineConfiguration.getCustomPostDeployers().add(new YamlBpmnDeployer());
}
 
开发者ID:sdorokhova,项目名称:simple-workflow,代码行数:10,代码来源:SimpleWorkflowProcessEnginePlugin.java

示例4: preInit

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
  List<Deployer> customPreDeployers = processEngineConfiguration.getCustomPreDeployers();
  if (customPreDeployers == null) {
    customPreDeployers = new ArrayList<Deployer>();
    processEngineConfiguration.setCustomPreDeployers(customPreDeployers);
  }

  customPreDeployers.add(new XlsxDeployer());
}
 
开发者ID:camunda,项目名称:camunda-dmn-xlsx,代码行数:10,代码来源:XlsxDmnProcessEnginePlugin.java

示例5: deploy

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public void deploy(final DeploymentEntity deployment) {
  Context.getCommandContext().runWithoutAuthorization(new Callable<Void>() {
    public Void call() throws Exception {
      for (Deployer deployer : deployers) {
        deployer.deploy(deployment);
      }
      return null;
    }
  });
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:11,代码来源:CacheDeployer.java

示例6: deployOnlyGivenResourcesOfDeployment

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public void deployOnlyGivenResourcesOfDeployment(final DeploymentEntity deployment, String... resourceNames) {
  initDeployment(deployment, resourceNames);
  Context.getCommandContext().runWithoutAuthorization(new Callable<Void>() {
    public Void call() throws Exception {
      for (Deployer deployer : deployers) {
        deployer.deploy(deployment);
      }
      return null;
    }
  });
  deployment.setResources(null);
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:13,代码来源:CacheDeployer.java

示例7: getDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public List<Deployer> getDeployers() {
  return deployers;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java

示例8: setDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setDeployers(List<Deployer> deployers) {
  this.deployers = deployers;
  return this;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java

示例9: getCustomPreDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public List<Deployer> getCustomPreDeployers() {
  return customPreDeployers;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java

示例10: setCustomPreDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setCustomPreDeployers(List<Deployer> customPreDeployers) {
  this.customPreDeployers = customPreDeployers;
  return this;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java

示例11: getCustomPostDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public List<Deployer> getCustomPostDeployers() {
  return customPostDeployers;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java

示例12: setCustomPostDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setCustomPostDeployers(List<Deployer> customPostDeployers) {
  this.customPostDeployers = customPostDeployers;
  return this;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java

示例13: setDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public void setDeployers(List<Deployer> deployers) {
  this.deployers = deployers;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:4,代码来源:CacheDeployer.java

示例14: setDeployers

import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public void setDeployers(List<Deployer> deployers) {
  this.cacheDeployer.setDeployers(deployers);
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:4,代码来源:DeploymentCache.java


注:本文中的org.camunda.bpm.engine.impl.persistence.deploy.Deployer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。