Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2784

Schema doesn't accept condition attribute in transition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jBPM 3.2.9
    • jBPM 3.2.8
    • Runtime Engine
    • None
    • Workaround Exists
    • Hide

      Write condition as element text.

      <decision name="node1">
      <transition to="node2"><condition>#

      {AAA == null}

      </condition></transition>
      <transition to="node3"></transition>
      </decision>

      Show
      Write condition as element text. <decision name="node1"> <transition to="node2"><condition># {AAA == null} </condition></transition> <transition to="node3"></transition> </decision>

      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/JBPM_Reference_Manual/index.html#transition.element

              aguizar_jira Alejandro Guizar (Inactive)
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: