05-20-2014 07:59 AM
RepositoryServiceImpl repo = (RepositoryServiceImpl) processEngine.getRepositoryService();
ProcessDefinitionEntity pde = (ProcessDefinitionEntity) repositoryService
.createProcessDefinitionQuery()
.processDefinitionKey("MyProcessDefinitionKey")
.latestVersion().singleResult();
pde = (ProcessDefinitionEntity) repo.getDeployedProcessDefinition(pde.getId());
Properties prop = new Properties();
prop.load(new StringReader(pde.getDescription()));
System.out.println(prop.getProperty("context"));
System.out.println(prop.getProperty("desc"));
System.out.println("process: " + pde.getDescription());
Map<String,TaskDefinition> MyTableTasks = pde.getTaskDefinitions();
05-21-2014 02:42 AM
05-21-2014 05:25 AM
05-22-2014 03:43 AM
what it could change ?
@Deployment(resources = {
"org/activiti/engine/test/api/oneTaskProcess.bpmn20.xml"})
public void testNPE() throws IOException {
RepositoryServiceImpl repo = (RepositoryServiceImpl) processEngine.getRepositoryService();
ProcessDefinitionEntity pde = (ProcessDefinitionEntity) repositoryService
.createProcessDefinitionQuery()
.processDefinitionKey("oneTaskProcess")
.latestVersion().singleResult();
pde = (ProcessDefinitionEntity) repo.getDeployedProcessDefinition(pde.getId());
Properties prop = new Properties();
prop.load(new StringReader(pde.getDescription()));
System.out.println(prop.getProperty("context"));
System.out.println(prop.getProperty("desc"));
System.out.println("process: " + pde.getDescription());
Map<String, TaskDefinition> MyTableTasks = pde.getTaskDefinitions();
}
05-22-2014 05:17 AM
05-23-2014 02:12 AM
@Deployment(resources = {
"org/activiti/engine/test/api/oneTaskProcess.bpmn20.xml"})
public void testNPE() throws IOException {
RepositoryServiceImpl repo = (RepositoryServiceImpl) processEngine.getRepositoryService();
ProcessDefinitionEntity pde = (ProcessDefinitionEntity) repositoryService
.createProcessDefinitionQuery()
.processDefinitionKey("oneTaskProcess")
.latestVersion().singleResult();
pde = (ProcessDefinitionEntity) repo.getDeployedProcessDefinition(pde.getId());
Properties prop = new Properties();
prop.load(new StringReader(pde.getDescription()));
System.out.println(prop.getProperty("context"));
System.out.println(prop.getProperty("desc"));
System.out.println("process: " + pde.getDescription());
Map<String, TaskDefinition> myTableTasks = pde.getTaskDefinitions();
assertNotNull(myTableTasks);
assertNotNull(pde.getDescription());
}
05-23-2014 05:59 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.