activiti学习资料(获取节点类型,判断是否为开始结束节点)

Activiti学习资料,获取各种节点的类型,判断是否为任务节点,开始时间,结束事件

测试的流程定义,如图:



java代码如下:

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

控制台打印结果如下:



你可能感兴趣的:(java,activiti,bpmn2.0,业务流程,jbpm5,object,string,任务,java,测试)