@@ -0,0 +1,2004 @@
+%0Apackage com.mossle.bpm;%0A%0Aimport java.util.Date;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport javax.annotation.Resource;%0A%0Aimport org.activiti.engine.IdentityService;%0Aimport org.activiti.engine.ProcessEngine;%0Aimport org.activiti.engine.RepositoryService;%0Aimport org.activiti.engine.RuntimeService;%0Aimport org.activiti.engine.TaskService;%0Aimport org.activiti.engine.impl.ServiceImpl;%0Aimport org.activiti.engine.impl.interceptor.Command;%0Aimport org.activiti.engine.repository.Deployment;%0Aimport org.activiti.engine.repository.ProcessDefinition;%0Aimport org.activiti.engine.runtime.ProcessInstance;%0Aimport org.activiti.engine.task.Task;%0A%0Aimport org.junit.After;%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport org.junit.runner.RunWith;%0A%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.activiti.bpmn.model.BpmnModel;%0Aimport org.activiti.bpmn.model.Process;%0Aimport org.activiti.bpmn.model.FlowElement;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(locations = %7B %22classpath:/spring/applicationContext*.xml%22 %7D)%0Apublic class ModelTest %7B%0A    @Resource%0A    private RepositoryService repositoryService;%0A    @Test%0A%09public void testDefault() %7B%0A%09%09List%3CProcessDefinition%3E processDefinitions = repositoryService.createProcessDefinitionQuery().list();%0A%09%09System.out.println(%22processDefinitions : %22 + processDefinitions);%0A%09%09for (ProcessDefinition processDefinition : processDefinitions) %7B%0A%09%09%09System.out.println(%22processDefinition : %22 + processDefinition);%0A%09%09%09BpmnModel bpmnModel = repositoryService.getBpmnModel(processDefinition.getId());%0A%09%09%09System.out.println(%22bpmnModel : %22 + bpmnModel);%0A%09%09%09for (Process process : bpmnModel.getProcesses()) %7B%0A%09%09%09%09System.out.println(%22process : %22 + process);%0A%09%09%09%09for (FlowElement flowElement : process.getFlowElements()) %7B%0A%09%09%09%09%09System.out.println(%22flowElement : %22 + flowElement);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D%0A

add respositoryService.getBpmnModel() test