AnsweredAssumed Answered

Problem JRE

Question asked by aicha on Jul 12, 2016
package org.activiti.designer.test;

import java.util.HashMap;
import java.util.Map;
import java.io.FileInputStream;

import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.test.ActivitiRule;
import org.junit.Rule;
import org.junit.Test;

public class ProcessTestMyProcess {

   private String filename = "C:\Users\hp\workspacein\SimpleLeave-Process\src\main\resources\diagrams\SimpleLeaveProcess.bpmn";

   @Rule
   public ActivitiRule activitiRule = new ActivitiRule();

   @Test
    public void startProcess() throws Exception {
    RepositoryService repositoryService = activitiRule.
   getRepositoryService();
    repositoryService.createDeployment().addInputStream("SimpleLeaveProcess.bpmn20.xml",
    new FileInputStream(filename)).deploy();
    RuntimeService runtimeService = activitiRule.
   getRuntimeService();
    Map<String, Object> variableMap = new HashMap<String, Object>();
    variableMap.put("Empname", "Irshad");
    ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("leaveProcess", variableMap);
    assertNotNull(processInstance.getId());
    System.out.println("id " + processInstance.getId() + " "
    + processInstance.getProcessDefinitionId());
    }
}
I have some problems in the declaration of those librairies , maybe I didn't install th JRE correctly, what's the problem?

Outcomes