AnsweredAssumed Answered

hello world

Question asked by sarra1 on Jun 17, 2013
Latest reply on Jan 22, 2015 by ronit_taranekar
Hi, I'm a beginner in activiti , i try to run a simple process hello world:

import org.activiti.DbProcessEngineBuilder;
import org.activiti.ProcessEngine;
import org.activiti.ProcessService;

public class RunProcess {

   public static void main(String [ ] args){
      //First, boot up the process engine:
      ProcessEngine processEngine = new DbProcessEngineBuilder().configureFromPropertiesResource("").buildProcessEngine();
      ProcessService processService = processEngine.getProcessService();

      //To run the process, it first need to be ‘deployed’ to the engine.
      //Deploying means that the process is parsed and stored in the Activiti database:

      //execute the process

I am getting following error while executing the program.
juin 17, 2013 12:19:48 PM org.activiti.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
Exception in thread "main" org.activiti.ActivitiException: couldn't read input stream hello-world.bpmn20.xml
   at org.activiti.impl.util.IoUtil.readInputStream(
   at org.activiti.impl.repository.DeploymentBuilderImpl.addInputStream(
   at org.activiti.impl.repository.DeploymentBuilderImpl.addClasspathResource(
   at RunProcess.main(
Caused by: java.lang.NullPointerException
   at org.activiti.impl.util.IoUtil.readInputStream(
   … 3 more