[jboss-user] [JBoss jBPM] - excution process in ather process
btl_ayd
do-not-reply at jboss.com
Sat Jun 7 05:07:44 EDT 2008
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?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156456#4156456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156456
More information about the jboss-user
mailing list