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


Java ProcessDefinition.getDeploymentId方法代码示例

本文整理汇总了Java中org.activiti.engine.repository.ProcessDefinition.getDeploymentId方法的典型用法代码示例。如果您正苦于以下问题:Java ProcessDefinition.getDeploymentId方法的具体用法?Java ProcessDefinition.getDeploymentId怎么用?Java ProcessDefinition.getDeploymentId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.activiti.engine.repository.ProcessDefinition的用法示例。


在下文中一共展示了ProcessDefinition.getDeploymentId方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SimpleProcessDefinition

import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
public SimpleProcessDefinition(ProcessDefinition definition) {
    id = definition.getId();
    category = definition.getCategory();
    name = definition.getName();
    key = definition.getKey();
    description = definition.getDescription();
    version = definition.getVersion();

    resourceName = definition.getResourceName();
    deploymentId = definition.getDeploymentId();
    diagramResourceName = definition.getResourceName();

    suspended = definition.isSuspended();

    hasGraphicalNotation = definition.hasGraphicalNotation();
    hasStartFormKey = definition.hasStartFormKey();
    tenantId = definition.getTenantId();

}
 
开发者ID:hs-web,项目名称:hsweb-framework,代码行数:20,代码来源:SimpleProcessDefinition.java

示例2: processList

import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
/**
 * 流程定义列表
 */
public Page<Object[]> processList(Page<Object[]> page, String category) {

    ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery()
    		.latestVersion().orderByProcessDefinitionKey().asc();
    
    if (StringUtils.isNotEmpty(category)){
    	processDefinitionQuery.processDefinitionCategory(category);
	}
    
    page.setCount(processDefinitionQuery.count());
    
    List<ProcessDefinition> processDefinitionList = processDefinitionQuery.listPage(page.getFirstResult(), page.getMaxResults());
    for (ProcessDefinition processDefinition : processDefinitionList) {
      String deploymentId = processDefinition.getDeploymentId();
      Deployment deployment = repositoryService.createDeploymentQuery().deploymentId(deploymentId).singleResult();
      page.getList().add(new Object[]{processDefinition, deployment});
    }

	return page;
}
 
开发者ID:EleTeam,项目名称:Shop-for-JavaWeb,代码行数:24,代码来源:ActProcessService.java

示例3: processList

import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
/**
 * 获取流程列表
 * @param category 流程分类
 */
public Page<Object[]> processList(Page<Object[]> page, String category) {
	/*
	 * 保存两个对象,一个是ProcessDefinition(流程定义),一个是Deployment(流程部署)
	 */
    ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery()
    		.latestVersion().active().orderByProcessDefinitionKey().asc();
    
    if (StringUtils.isNotEmpty(category)){
    	processDefinitionQuery.processDefinitionCategory(category);
	}
    
    page.setCount(processDefinitionQuery.count());
    
    List<ProcessDefinition> processDefinitionList = processDefinitionQuery.listPage(page.getFirstResult(), page.getMaxResults());
    for (ProcessDefinition processDefinition : processDefinitionList) {
      String deploymentId = processDefinition.getDeploymentId();
      Deployment deployment = repositoryService.createDeploymentQuery().deploymentId(deploymentId).singleResult();
      page.getList().add(new Object[]{processDefinition, deployment});
    }
	return page;
}
 
开发者ID:EleTeam,项目名称:Shop-for-JavaWeb,代码行数:26,代码来源:ActTaskService.java

示例4: processDefinitionQueryTest

import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
@Test
    public void processDefinitionQueryTest() {
        List<ProcessDefinition> processDefinitionList = repositoryService.createProcessDefinitionQuery()
                .list();
        for (ProcessDefinition processDefinition : processDefinitionList) {
            String tmp = "\r\n" +
                    "#=======================================================================================================================#\r\n" +
                    "# Spring MVC Context 容器初始化完成之后的处理:\r\n" +
                    "#\t getId " + processDefinition.getId() + "\r\n" +
                    "#\t getCategory " + processDefinition.getCategory() + "\r\n" +
                    "#\t getName " + processDefinition.getName() + "\r\n" +
                    "#\t getKey " + processDefinition.getKey() + "\r\n" +
                    "#\t getDescription " + processDefinition.getDescription() + "\r\n" +
                    "#\t getVersion " + processDefinition.getVersion() + "\r\n" +
                    "#\t getResourceName " + processDefinition.getResourceName() + "\r\n" +
                    "#\t getDeploymentId " + processDefinition.getDeploymentId() + "\r\n" +
                    "#\t getDiagramResourceName " + processDefinition.getDiagramResourceName() + "\r\n" +
                    "#\t hasStartFormKey " + processDefinition.hasStartFormKey() + "\r\n" +
                    "#\t hasGraphicalNotation " + processDefinition.hasGraphicalNotation() + "\r\n" +
                    "#\t isSuspended " + processDefinition.isSuspended() + "\r\n" +
                    "#\t getTenantId " + processDefinition.getTenantId() + "\r\n" +
                    "#=======================================================================================================================#\r\n";
            logger.info(tmp);
        }

//        org.activiti.rest.service.application.ActivitiRestServicesApplication
//        org.activiti.rest.service.api.RestActionRequest
    }
 
开发者ID:Lzw2016,项目名称:study,代码行数:29,代码来源:Test02.java

示例5: BpmModelVo

import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
public BpmModelVo(ProcessDefinition o) {
	this.id = o.getId();
	this.category = o.getCategory();
	this.name = o.getName();
	this.key = o.getKey();
	this.description = o.getDescription();
	this.version = o.getVersion();
	this.deploymentId = o.getDeploymentId();
	this.resourceName = o.getResourceName();
	this.diagramResourceName = o.getDiagramResourceName();
}
 
开发者ID:KayuraTeam,项目名称:kayura-activiti,代码行数:12,代码来源:BpmModelVo.java

示例6: ProcessDefinitionVo

import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
public ProcessDefinitionVo(ProcessDefinition o) {
	this.id = o.getId();
	this.category = o.getCategory();
	this.name = o.getName();
	this.key = o.getKey();
	this.description = o.getDescription();
	this.version = o.getVersion();
	this.resourceName = o.getResourceName();
	this.deploymentId = o.getDeploymentId();
	this.diagramResourceName = o.getDiagramResourceName();
	this.hasStartFormKey = o.hasStartFormKey();
	this.hasGraphicalNotation = o.hasGraphicalNotation();
	this.suspended = o.isSuspended();
	this.tenantId = o.getTenantId();
}
 
开发者ID:KayuraTeam,项目名称:kayura-activiti,代码行数:16,代码来源:ProcessDefinitionVo.java


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