Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, because the message was forwarded more than the maximum allowed times. This could indicate a mail loop.
db_tdk(a)technodom.kz
17 years, 10 months
[JBoss jBPM] - excution process in ather process
by btl_ayd
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
17 years, 10 months