AnsweredAssumed Answered

How to get a list of caracteristics of an active process ?

Question asked by cnirparis on May 20, 2014
Latest reply on May 23, 2014 by cnirparis
This topic has already been treated in this forum, unfortunately no solution works in my configuration (Activiti 5.15).
The problem is that when i do :


      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();

I always get a null object in "MyTableTasks".
Perhaps this no longer works in 5.15 ?
Thank you if anyone has a working solution.

Outcomes