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

Invalid xml generation for script tags within eclipse editor bpmn, of on entry/exit action

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • jBPM 6.4.0.CR2
    • jBPM 5.2
    • Eclipse
    • Hide

      Create a process,
      start node -> Log node -> end node
      Add within the on entry action of the Log node java code i.e. System.out.println("test");
      After saving the process the xml generated for the script part will be missing the namespace prefix, as a result if one tries to commit it to guvnor and open it with web designer it will not render.

      Show
      Create a process, start node -> Log node -> end node Add within the on entry action of the Log node java code i.e. System.out.println("test"); After saving the process the xml generated for the script part will be missing the namespace prefix, as a result if one tries to commit it to guvnor and open it with web designer it will not render.

      The xml generated for the script entered within on entry/exit action of a workitem i.e. Log , seems to be invalid, resulting in unexpected behaviour on other systems i.e. jbpm web designer, that expect valid xml.
      Specifically the generated script tags within the bpmn do not contain namespace prefix i.e.

      <extensionElements>
      <tns:onEntry-script>
      <script>System.out.println("test");</script>
      </tns:onEntry-script>
      </extensionElements>

      should probably be,

      <extensionElements>
      <tns:onEntry-script>
      <tns:script>System.out.println("test");</tns:script>
      </tns:onEntry-script>
      </extensionElements>

      Also discussed at this forum thread,
      https://community.jboss.org/thread/178064

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              melc_jira Chris Melas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: