AnsweredAssumed Answered

ProcessEngine null

Question asked by arag on Nov 24, 2016
Latest reply on Dec 15, 2016 by kgastaldo
Hello
I need help please!
I have a problem with the ProcessEngine when i try to init.
My code

public static void main(String[] args) {
        new update().updateFlow();
    }

    public void updateFlow() {
        pe = ProcessEngines.getDefaultProcessEngine();
        System.out.println("cargando"+pe);
        try {
            RepositoryService repositoryService = pe.getRepositoryService();
            String dep = repositoryService.createDeployment().addClasspathResource("test.bpmn20.xml").deploy().getId();
            System.out.println("deploy" + dep);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

Show me the message java.lang.NullPointerException. I work with Maven and activiti 6 beta4

Thans for your time

Outcomes