activiti 5.10笔记2

获取节点类型,判断是否为开始结束节点:


ProcessDefinitionEntity def = (ProcessDefinitionEntity)((RepositoryServiceImpl)repositoryService).getDeployedProcessDefinition(actDefId);
		List<ActivityImpl> activitiList = def.getActivities();
		for(ActivityImpl act : activitiList){ 
			// id,name,type
			Map<String,Object> prop = act.getProperties();
			Iterator<String> keys = prop.keySet().iterator();
			while(keys.hasNext()){
				String key = keys.next();
				System.out.println("属性:key="+key + ",value="+ prop.get(key));
			}
		}

你可能感兴趣的:(activiti 5.10笔记2)