[jboss-user] [JBoss jBPM] - Re: How to deploy websales.par to Oracle database with eclip
jstachera
do-not-reply at jboss.com
Wed Oct 18 09:59:39 EDT 2006
"idyuce" wrote : if gpd plugin causes problem while deploying, You can write a custom Deployer java class to deploy process definitons to db.
| e.g. you can write follwing lines for deploying.
|
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("websale.par/processdefiniton.xml"); //path may be relative
| jbpmContext .deployProcessDefinition(processDefinition);
I tried to deploy the websale process in this way and I got the following error:
| org.jbpm.jpdl.JpdlException: [[ERROR] line 334: cos-ct-extends.1.4.2.2.2.2.1: Error for type '#AnonType_assignment'. The content type of a derived type and that of its base must both be mixed or element-only., [WARNING] swimlane 'buyer' does not have an assignment]
| at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
| at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
| at com.dnet.def.jbpm.utils.JbpmInitializer.deployProcess(JbpmInitializer.java:37)
| at com.dnet.def.jbpm.utils.JbpmInitializer.main(JbpmInitializer.java:85)
|
The problem is due to unassigned swimlane in the websale processdefiniton file:
| <?xml version="1.0"?>
|
| <process-definition name="websale"
| xmlns="urn:jbpm.org:jpdl-3.1">
|
| <!-- SWIMLANES (= process roles) -->
|
| <swimlane name="buyer">
|
| </swimlane>
|
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979085#3979085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979085
More information about the jboss-user
mailing list