activiti5.4中文指南

ProcessDefinitionEntity def = (ProcessDefinitionEntity) ((RepositoryServiceImpl) repositoryService)
.getDeployedProcessDefinition(processDefinitionId);
List<ActivityImpl> activitiList = def.getActivities();// 获得当前任务的所有节点
for (ActivityImpl activityImpl : activitiList) {
String id = activityImpl.getId();
System.out.println("当前任务:" + activityImpl.getProperty("name")); // 输出某个节点的某种属性
List<PvmTransition> outTransitions = activityImpl
.getOutgoingTransitions();// 获取从某个节点出来的所有线路
for (PvmTransition tr : outTransitions) {
PvmActivity ac = tr.getDestination(); // 获取线路的终点节点
System.out.println("下一步任务任务:" + ac.getProperty("name"));
}
}

你可能感兴趣的:(activiti5)