本文整理汇总了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;
}
示例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);
}
}
}
}
}
示例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());
}
示例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());
}
示例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;
}
});
}
示例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);
}
示例7: getDeployers
import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public List<Deployer> getDeployers() {
return deployers;
}
示例8: setDeployers
import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setDeployers(List<Deployer> deployers) {
this.deployers = deployers;
return this;
}
示例9: getCustomPreDeployers
import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public List<Deployer> getCustomPreDeployers() {
return customPreDeployers;
}
示例10: setCustomPreDeployers
import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setCustomPreDeployers(List<Deployer> customPreDeployers) {
this.customPreDeployers = customPreDeployers;
return this;
}
示例11: getCustomPostDeployers
import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public List<Deployer> getCustomPostDeployers() {
return customPostDeployers;
}
示例12: setCustomPostDeployers
import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setCustomPostDeployers(List<Deployer> customPostDeployers) {
this.customPostDeployers = customPostDeployers;
return this;
}
示例13: setDeployers
import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public void setDeployers(List<Deployer> deployers) {
this.deployers = deployers;
}
示例14: setDeployers
import org.camunda.bpm.engine.impl.persistence.deploy.Deployer; //导入依赖的package包/类
public void setDeployers(List<Deployer> deployers) {
this.cacheDeployer.setDeployers(deployers);
}