本文整理汇总了Java中org.activiti.engine.repository.ProcessDefinition.getName方法的典型用法代码示例。如果您正苦于以下问题:Java ProcessDefinition.getName方法的具体用法?Java ProcessDefinition.getName怎么用?Java ProcessDefinition.getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.activiti.engine.repository.ProcessDefinition
的用法示例。
在下文中一共展示了ProcessDefinition.getName方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convert
import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
/**
* Convert a {@link ProcessDefinition} into a {@link WorkflowDefinition}.
* @param definition ProcessDefinition
* @return WorkflowDefinition
*/
public WorkflowDefinition convert(ProcessDefinition definition)
{
if(definition==null)
return null;
String defId = definition.getId();
String defName = definition.getKey();
int version = definition.getVersion();
String defaultTitle = definition.getName();
String startTaskName = null;
StartFormData startFormData = getStartFormData(defId, defName);
if(startFormData != null)
{
startTaskName = startFormData.getFormKey();
}
ReadOnlyProcessDefinition def = activitiUtil.getDeployedProcessDefinition(defId);
PvmActivity startEvent = def.getInitial();
WorkflowTaskDefinition startTask = getTaskDefinition(startEvent, startTaskName, definition.getKey(), true);
return factory.createDefinition(defId,
defName, version, defaultTitle,
null, startTask);
}
示例2: 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();
}
示例3: 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
}
示例4: 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();
}
示例5: 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();
}
示例6: getProcessDisplayName
import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
protected String getProcessDisplayName(ProcessDefinition processDefinition) {
if(processDefinition.getName() != null) {
return processDefinition.getName();
} else {
return processDefinition.getKey();
}
}
示例7: getProcessDisplayName
import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
protected String getProcessDisplayName(ProcessDefinition processDefinition, ProcessInstance processInstance) {
if(processDefinition.getName() != null) {
return processDefinition.getName() + " (" + processInstance.getId() +")";
} else {
return processDefinition.getKey() + " (" + processInstance.getId() +")";
}
}
示例8: getProcessDefinitionName
import org.activiti.engine.repository.ProcessDefinition; //导入方法依赖的package包/类
protected String getProcessDefinitionName(String processDefinitionId) {
if (!cachedProcessDefinitionNames.containsKey(processDefinitionId)) {
ProcessDefinition definition = repositoryService.createProcessDefinitionQuery()
.processDefinitionId(processDefinitionId).singleResult();
String name =definition.getName();
if(name != null) {
name = definition.getKey();
}
cachedProcessDefinitionNames.put(processDefinitionId, name);
}
return cachedProcessDefinitionNames.get(processDefinitionId);
}