• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java BpmnDeployer类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getDefaultDeployers

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
protected Collection< ? extends Deployer> getDefaultDeployers() {
  List<Deployer> defaultDeployers = new ArrayList<Deployer>();

  BpmnDeployer bpmnDeployer = new BpmnDeployer();
  bpmnDeployer.setExpressionManager(expressionManager);
  bpmnDeployer.setIdGenerator(idGenerator);
  BpmnParser bpmnParser = new BpmnParser(expressionManager);
  
  if(preParseListeners != null) {
    bpmnParser.getParseListeners().addAll(preParseListeners);
  }
  bpmnParser.getParseListeners().addAll(getDefaultBPMNParseListeners());
  if(postParseListeners != null) {
    bpmnParser.getParseListeners().addAll(postParseListeners);
  }
  
  bpmnDeployer.setBpmnParser(bpmnParser);
  
  defaultDeployers.add(bpmnDeployer);
  return defaultDeployers;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:22,代码来源:ProcessEngineConfigurationImpl.java


示例2: createDeploymentResourceResponse

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
public DeploymentResourceResponse createDeploymentResourceResponse(String deploymentId, String resourceId, String contentType, String baseUri) {
    RestUrlBuilder urlBuilder = createUrlBuilder(baseUri);
    // Create URL's
    String resourceUrl = urlBuilder.buildUrl(RestUrls.URL_DEPLOYMENT_RESOURCE, deploymentId, resourceId);
    String resourceContentUrl = urlBuilder.buildUrl(RestUrls.URL_DEPLOYMENT_RESOURCE_CONTENT, deploymentId, resourceId);

    // Determine type
    String type = "resource";
    for (String suffix : BpmnDeployer.BPMN_RESOURCE_SUFFIXES) {
        if (resourceId.endsWith(suffix)) {
            type = "processDefinition";
            break;
        }
    }
    return new DeploymentResourceResponse(resourceId, resourceUrl, resourceContentUrl, contentType, type);
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:17,代码来源:RestResponseFactory.java


示例3: getBpmnProcessDefinitionResource

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
/**
 * get a resource location by convention based on a class (type) and a
 * relative resource name. The return value will be the full classpath
 * location of the type, plus a suffix built from the name parameter:
 * <code>BpmnDeployer.BPMN_RESOURCE_SUFFIXES</code>. 
 * The first resource matching a suffix will be returned.
 */
public static String getBpmnProcessDefinitionResource(Class< ? > type, String name) {
  for (String suffix : BpmnDeployer.BPMN_RESOURCE_SUFFIXES) {
    String resource = type.getName().replace('.', '/') + "." + name + "." + suffix;
    InputStream inputStream = ReflectUtil.getResourceAsStream(resource);
    if (inputStream == null) {
      continue;
    } else {
      return resource;
    }
  }
  return type.getName().replace('.', '/') + "." + name + "." + BpmnDeployer.BPMN_RESOURCE_SUFFIXES[0];
}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:20,代码来源:TestHelper.java


示例4: deployDefinition

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public WorkflowDeployment deployDefinition(InputStream workflowDefinition, String mimetype, String name)
{
    try 
    {
        String resourceName = GUID.generate() + BpmnDeployer.BPMN_RESOURCE_SUFFIXES[0];
        
        Deployment deployment = repoService.createDeployment()
            .addInputStream(resourceName, workflowDefinition)
            .name(name)
            .deploy();
        
        List<ProcessDefinition> definitionList = repoService.createProcessDefinitionQuery().deploymentId(deployment.getId()).list();
        if (definitionList != null && definitionList.size() > 0)
        {
            boolean internalCategory = true;
            for (ProcessDefinition processDefinition : definitionList)
            {
               if (WorkflowDeployer.CATEGORY_ALFRESCO_INTERNAL.equals(processDefinition.getCategory()) == false)
               {
                   internalCategory = false;
                   break;
               }
            }
            
            if (internalCategory)
            {
                repoService.setDeploymentCategory(deployment.getId(), WorkflowDeployer.CATEGORY_ALFRESCO_INTERNAL);
            }
        }
        
        // No problems can be added to the WorkflowDeployment, warnings are
        // not exposed
        return typeConverter.convert(deployment);
    } 
    catch(Exception ae) 
    {
        String msg = messageService.getMessage(ERR_DEPLOY_WORKFLOW);
        if(logger.isDebugEnabled())
        {
        	logger.debug(msg, ae);
        }
        throw new WorkflowException(msg, ae);
    }
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:48,代码来源:ActivitiWorkflowEngine.java


示例5: getBpmnDeployer

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
public BpmnDeployer getBpmnDeployer() {
    return bpmnDeployer;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java


示例6: setBpmnDeployer

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setBpmnDeployer(BpmnDeployer bpmnDeployer) {
    this.bpmnDeployer = bpmnDeployer;
    return this;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java


示例7: deployProcessString

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
private String deployProcessString(String processString) {
  String resourceName = "xmlString." + BpmnDeployer.BPMN_RESOURCE_SUFFIX;
  return repositoryService.createDeployment().addString(resourceName, processString).deploy().getId();
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:5,代码来源:ProcessDefinitionsTest.java


示例8: getBpmnDeployer

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
public BpmnDeployer getBpmnDeployer() {
  return bpmnDeployer;
}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java


示例9: setBpmnDeployer

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setBpmnDeployer(BpmnDeployer bpmnDeployer) {
  this.bpmnDeployer = bpmnDeployer;
  return this;
}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java


示例10: deployProcessString

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
private String deployProcessString(String processString) {
  String resourceName = "xmlString." + BpmnDeployer.BPMN_RESOURCE_SUFFIXES[0];
  return repositoryService.createDeployment().addString(resourceName, processString).deploy().getId();
}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:5,代码来源:ProcessDefinitionsTest.java


示例11: getBpmnProcessDefinitionResource

import org.activiti.engine.impl.bpmn.deployer.BpmnDeployer; //导入依赖的package包/类
/**
 * get a resource location by convention based on a class (type) and a
 * relative resource name. The return value will be the full classpath
 * location of the type, plus a suffix built from the name parameter:
 * <code>.&lt;name&gt;.bpmn20.xml</code>.
 */
public static String getBpmnProcessDefinitionResource(Class< ? > type, String name) {
  return type.getName().replace('.', '/') + "." + name + "." + BpmnDeployer.BPMN_RESOURCE_SUFFIX;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:10,代码来源:TestHelper.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SelectMetadataChange类代码示例发布时间:2022-05-22
下一篇:
Java WhitespaceArgumentDelimiter类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap