jBPM
  1. jBPM
  2. JBPM-3728

Namespace mismatch in on-entry script

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved (View Workflow)
    • Priority: Blocker Blocker
    • Resolution: Done
    • Affects Version/s: jBPM 5.3
    • Fix Version/s: jBPM 5.4.0.Beta1
    • Component/s: Designer, Eclipse
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Bugzilla Update:
      Perform
    • Similar Issues:
      Show 10 results 

      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>

        Issue Links

          Activity

          Hide
          RH Bugzilla Integration
          added a comment -

          Marek Winkler <mwinkler@redhat.com> made a comment on bug 852118

          We have found that the error is somehow related to "tns:packageName" attribute of "process" element (see below). If this attribute is manually removed, the process definition created in JBDS imports successfully into Guvnor.

          <definitions ...
          xmlns:tns="http://www.jboss.org/drools">

          <process ... tns:packageName="defaultPackage">
          ...

          Show
          RH Bugzilla Integration
          added a comment - Marek Winkler <mwinkler@redhat.com> made a comment on bug 852118 We have found that the error is somehow related to "tns:packageName" attribute of "process" element (see below). If this attribute is manually removed, the process definition created in JBDS imports successfully into Guvnor. <definitions ... xmlns:tns="http://www.jboss.org/drools"> <process ... tns:packageName="defaultPackage"> ...
          Hide
          RH Bugzilla Integration
          added a comment -

          Tihomir Surdilovic <tsurdilo@redhat.com> made a comment on bug 852118

          I'm not sure it's related to the packageName attribute, but I think the namespace definition. targetNamespace="http://www.jboss.org/drools"

          if you remove the targetNamespace it imports fine.

          Show
          RH Bugzilla Integration
          added a comment - Tihomir Surdilovic <tsurdilo@redhat.com> made a comment on bug 852118 I'm not sure it's related to the packageName attribute, but I think the namespace definition. targetNamespace="http://www.jboss.org/drools" if you remove the targetNamespace it imports fine.
          Hide
          RH Bugzilla Integration
          added a comment -

          Tihomir Surdilovic <tsurdilo@redhat.com> made a comment on bug 852118

          The BPMN2 generated by eclipse already has:
          xmlns:tns="http://www.jboss.org/drools"
          so I think there is no need to have targetNamespace="http://www.jboss.org/drools" as well.

          I think this is a separate issue which needs its own BZ. WDYT?

          Show
          RH Bugzilla Integration
          added a comment - Tihomir Surdilovic <tsurdilo@redhat.com> made a comment on bug 852118 The BPMN2 generated by eclipse already has: xmlns:tns="http://www.jboss.org/drools" so I think there is no need to have targetNamespace="http://www.jboss.org/drools" as well. I think this is a separate issue which needs its own BZ. WDYT?
          Hide
          RH Bugzilla Integration
          added a comment -

          Marek Winkler <mwinkler@redhat.com> made a comment on bug 852118

          Agreed, I am going to file another BZ for this issue and marking this BZ as verified on BRMS 5.3.1 CR1 and JBDS 5.0.2 GA (from update site http://www.qa.jboss.com/binaries/RHDS/updates/development/5.0.2.GA.soa-tooling/).

          Show
          RH Bugzilla Integration
          added a comment - Marek Winkler <mwinkler@redhat.com> made a comment on bug 852118 Agreed, I am going to file another BZ for this issue and marking this BZ as verified on BRMS 5.3.1 CR1 and JBDS 5.0.2 GA (from update site http://www.qa.jboss.com/binaries/RHDS/updates/development/5.0.2.GA.soa-tooling/ ).
          Hide
          RH Bugzilla Integration
          added a comment -

          Marek Winkler <mwinkler@redhat.com> changed the Status of bug 852118 from ON_QA to VERIFIED

          Show
          RH Bugzilla Integration
          added a comment - Marek Winkler <mwinkler@redhat.com> changed the Status of bug 852118 from ON_QA to VERIFIED

            People

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

              Dates

              • Created:
                Updated:
                Resolved: