2 Replies Latest reply on May 27, 2014 8:12 AM by Ankit Jain

    I want to create jbpmn as an standalone service.

    Ankit Jain Newbie

      I wrote a main method and try to run simple bpmn process with out any presistence and transaction and any jboss. Below are the sample code I have written

       

      KieHelper kie =  new KieHelper();

              setupWorkFlows(kie);

              ksession = kie.build().newKieSession();

              setUpWorkItemHandler();

              ksession.startProcess("Customer.bpmn");

       

      setupWorkFlow = this method add the resources in the knowledge base

      setUpWorkItemHandler - set the handler to the associated task.

       

      This always give me following error

       

      Exception in thread "main" java.lang.IllegalArgumentException: Unknown process I

      D: Customer.bpmn

              at org.jbpm.process.instance.ProcessRuntimeImpl.createProcessInstance(Pr

      ocessRuntimeImpl.java:217)

              at org.jbpm.process.instance.ProcessRuntimeImpl.createProcessInstance(Pr

      ocessRuntimeImpl.java:178)

              at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRunt

      imeImpl.java:168)

              at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRunt

      imeImpl.java:163)

              at org.drools.core.common.AbstractWorkingMemory.startProcess(AbstractWor

      kingMemory.java:1575)

              at org.drools.core.impl.StatefulKnowledgeSessionImpl.startProcess(Statef

      ulKnowledgeSessionImpl.java:361)