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

Namespace mismatch in on-entry script

    Details

      Description

      There is a name space mismatch between the on-entry scripts(<script> created from the web designer and those created from eclipse. Due to this, when we save a process with on-entry actions from eclipse to guvnor, the process doesn't get saved proerly.

      xml from eclipse:
      <definitions id="Definition"
      targetNamespace="http://www.jboss.org/drools"
      typeLanguage="http://www.java.com/javaTypes"
      expressionLanguage="http://www.mvel.org/2.0"
      xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
      xmlns:g="http://www.jboss.org/drools/flow/gpd"
      xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
      xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
      xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
      xmlns:tns="http://www.jboss.org/drools">
      ....
      ....

      <extensionElements>
      <tns:onEntry-script scriptFormat="http://www.java.com/java">
      <script>System.out.println("Inside task1 of test1 process");</script>
      </tns:onEntry-script>
      </extensionElements>

      XML from designer:
      <?xml version="1.0" encoding="UTF-8"?>
      <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_LoFNkNTEEeGK1qo_QQKeyQ" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" targetNamespace="http://www.omg.org/bpmn20">
      <bpmn2:extensionElements>
      <drools:onEntry-script scriptFormat="http://www.java.com/java">
      <drools:script><![CDATA[System.out.println("Inside task 1 of test process");]]></drools:script>
      </drools:onEntry-script>
      </bpmn2:extensionElements>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tsurdilovic Tihomir Surdilovic
                  Reporter:
                  a_nat A Nat
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: