I found the problem:
This is my main process:
This is my sub process:
When I deploy the sub process and main process:
public void deployProcessDefinition() {
// / Extract a process definition from the
processdefinition.xml
// file.
ProcessDefinition processDefinition =
ProcessDefinition.parseXmlResource("main/processdefinition.xml");
assertNotNull("Definition should not be null",
processDefinition);
// Create an instance of the process definition.
ProcessInstance instance = new
ProcessInstance(processDefinition);
JbpmContext jbpmContext =
jbpmConfiguration.createJbpmContext();
try {
// Deploy the process definition in the database
jbpmContext.deployProcessDefinition(processDefinition);
} finally {
// Tear down the pojo persistence context.
// This includes flush the SQL for inserting
the process
// definition
// to the database.
jbpmContext.close();
}
}
It adds new records in all neccessary tables but it did not insert the sub
process definition id (subprocessdefinition_)
into table jbpm_node, after I manually insert this id, it works
How could we fix this bug?
Thanks,
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023501#4023501
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023501
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user