-
Bug
-
Resolution: Done
-
Major
-
jBPM 3.2.8
-
None
-
Workaround Exists
-
In case you write process definition like:
<decision name="node1">
<transition to="node2" condition="#
"></transition>
<transition to="node3"></transition>
</decision>
Schema will reject.
org.jbpm.jpdl.JpdlException: [[ERROR] cvc-complex-type.3.2.2: Attribute 'condition' is not allowed to appear in element 'transition'. line 10]
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:173)
at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:51)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:82)
at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:211)
at org.jbpm.web.ProcessUploadServlet.parseProcessArchive(ProcessUploadServlet.java:147)
at org.jbpm.web.ProcessUploadServlet.doPost(ProcessUploadServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
According to docs, condition can be "attribute or element text"
http://www.redhat.com/docs/en-US/JBoss_SOA_Platform/4.3.CP02/html-single/JBPM_Reference_Manual/index.html#transition.element