4 Replies Latest reply on Jun 9, 2008 2:26 AM by kukeltje

    excution process in ather process

      hi Iam new at jbpm.I want excute process in ather process.
      I configureted jbpm conf.xml as:

      <jbpm-configuration>
      <jbpm-context>

      </jbpm-context>

      </jbpm-configuration>
      and I write code for excution process in class that implement ActionHadler.

      public class Act implements ActionHandler {
      JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
      JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
      public void execute(ExecutionContext executionContext) throws Exception {
      try{
      //deploy process
      ProcessDefinition processDefinition =ProcessDefinition.parseXmlResource("den.dd/processdefinition.xml");
      jbpmContext.deployProcessDefinition(processDefinition);
      String procesname=processDefinition.getName();
      //process çalıştır
      System.out.println("proces adı"+procesname);
      System.out.println("proces adı"+procesname);
      System.out.println("proces adı"+procesname);
      System.out.println("proces adı"+procesname);
      ProcessInstance processInstance = jbpmContext.newProcessInstance(procesname);
      //icraya devam
      long processInstanceId =processDefinition.getId();
      System.out.println("proces id"+processInstanceId);
      processInstance =jbpmContext.loadProcessInstance(processInstanceId);
      processInstance.signal();
      jbpmContext.save(processInstance);

      }finally{
      jbpmContext.close();
      }

      }

      }
      here is my process xml that I excute another process in it;

      <?xml version="1.0" encoding="UTF-8"?>

      <process-definition
      xmlns="urn:jbpm.org:jpdl-3.2" name="den">
      <start-state name="start">

      </start-state>
      <task-node name="task1">









      </task-node>
      <end-state name="end1"></end-state>
      </process-definition>
      but when I run it at server this error occure

      Error
      Error starting process: An exception of type "org.jbpm.graph.def.DelegationException" was thrown. The message is: [[ERROR] couldn't parse process definition]
      what is wrong anybody can help me?