[
https://jira.jboss.org/jira/browse/JBPM-2784?page=com.atlassian.jira.plug...
]
Toshiya Kobayashi commented on JBPM-2784:
-----------------------------------------
Yes, I confirmed it worked without schema validation.
And here is Alejandro's comment.
> I'd like to file a JIRA, but which one(schema or docs)
should be fixed?
The schema, since the JpdlXmlParser does read the condition attribute.
-Alejandro
Schema doesn't accept condition attribute in transition
-------------------------------------------------------
Key: JBPM-2784
URL:
https://jira.jboss.org/jira/browse/JBPM-2784
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 3.2.8
Reporter: Toshiya Kobayashi
Fix For: jBPM 3.2.9
In case you write process definition like:
<decision name="node1">
<transition to="node2" condition="#{AAA ==
null}"></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/...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira