Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-389

schemaLocation is lost when a process is created by "Copy" in Process Designer

XMLWordPrintable

    • Workaround Exists
      • Edit and Save the process
    • Hide
      • Create a process with StartEvent->ScriptTask->EndEvent in Process Designer
      • Press "Copy" in Process Designer
      • Build&Deploy
        You will see errors in the Description.
      • git clone the repository
      • You will see the newly created process doesn't have "xsi:schemaLocation". (Process Designer's "View Process Sources" recovers "xsi:schemaLocation" on the fly so not good for the observation step)
      Show
      Create a process with StartEvent->ScriptTask->EndEvent in Process Designer Press "Copy" in Process Designer Build&Deploy You will see errors in the Description. git clone the repository You will see the newly created process doesn't have "xsi:schemaLocation". (Process Designer's "View Process Sources" recovers "xsi:schemaLocation" on the fly so not good for the observation step)

      When you copied a process with "Copy" button in Process Designer, the newly created BPMN2 process doesn't have "xsi:schemaLocation" attribute in "bpmn2:definitions" element. So it produces the following errors:

      16:42:23,358 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 2, 687): cvc-elt.1.a: Cannot find the declaration of element 'bpmn2:definitions'.
      16:42:23,360 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 45, 63): cvc-elt.4.2: Cannot resolve 'dc:Point' to a type definition for element 'di:waypoint'.
      16:42:23,361 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 46, 63): cvc-elt.4.2: Cannot resolve 'dc:Point' to a type definition for element 'di:waypoint'.
      16:42:23,361 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 49, 63): cvc-elt.4.2: Cannot resolve 'dc:Point' to a type definition for element 'di:waypoint'.
      16:42:23,361 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 50, 63): cvc-elt.4.2: Cannot resolve 'dc:Point' to a type definition for element 'di:waypoint'.
      16:42:23,361 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 57, 90): cvc-elt.4.2: Cannot resolve 'bpsim:Scenario' to a type definition for element 'bpsim:Scenario'.
      16:42:23,361 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 58, 93): cvc-elt.4.2: Cannot resolve 'bpsim:ScenarioParameters' to a type definition for element 'bpsim:ScenarioParameters'.
      16:42:23,361 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 59, 151): cvc-elt.4.2: Cannot resolve 'bpsim:ElementParameters' to a type definition for element 'bpsim:ElementParameters'.
      16:42:23,362 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 60, 67): cvc-elt.4.2: Cannot resolve 'bpsim:TimeParameters' to a type definition for element 'bpsim:TimeParameters'.
      16:42:23,362 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 61, 64): cvc-elt.4.2: Cannot resolve 'bpsim:Parameter' to a type definition for element 'bpsim:ProcessingTime'.
      16:42:23,362 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 65, 67): cvc-elt.4.2: Cannot resolve 'bpsim:CostParameters' to a type definition for element 'bpsim:CostParameters'.
      16:42:23,362 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 66, 58): cvc-elt.4.2: Cannot resolve 'bpsim:Parameter' to a type definition for element 'bpsim:UnitCost'.
      16:42:23,362 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 71, 151): cvc-elt.4.2: Cannot resolve 'bpsim:ElementParameters' to a type definition for element 'bpsim:ElementParameters'.
      16:42:23,362 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 72, 73): cvc-elt.4.2: Cannot resolve 'bpsim:ControlParameters' to a type definition for element 'bpsim:ControlParameters'.
      16:42:23,363 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 73, 61): cvc-elt.4.2: Cannot resolve 'bpsim:Parameter' to a type definition for element 'bpsim:Probability'.
      16:42:23,363 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 78, 151): cvc-elt.4.2: Cannot resolve 'bpsim:ElementParameters' to a type definition for element 'bpsim:ElementParameters'.
      16:42:23,363 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 79, 67): cvc-elt.4.2: Cannot resolve 'bpsim:TimeParameters' to a type definition for element 'bpsim:TimeParameters'.
      16:42:23,363 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 80, 64): cvc-elt.4.2: Cannot resolve 'bpsim:Parameter' to a type definition for element 'bpsim:ProcessingTime'.
      16:42:23,363 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 85, 151): cvc-elt.4.2: Cannot resolve 'bpsim:ElementParameters' to a type definition for element 'bpsim:ElementParameters'.
      16:42:23,363 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 86, 73): cvc-elt.4.2: Cannot resolve 'bpsim:ControlParameters' to a type definition for element 'bpsim:ControlParameters'.
      16:42:23,363 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 87, 61): cvc-elt.4.2: Cannot resolve 'bpsim:Parameter' to a type definition for element 'bpsim:Probability'.
      16:42:23,364 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 92, 131): cvc-elt.4.2: Cannot resolve 'bpsim:ElementParameters' to a type definition for element 'bpsim:ElementParameters'.
      16:42:23,364 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 93, 67): cvc-elt.4.2: Cannot resolve 'bpsim:TimeParameters' to a type definition for element 'bpsim:TimeParameters'.
      16:42:23,364 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 94, 64): cvc-elt.4.2: Cannot resolve 'bpsim:Parameter' to a type definition for element 'bpsim:ProcessingTime'.
      16:42:23,364 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 98, 73): cvc-elt.4.2: Cannot resolve 'bpsim:ControlParameters' to a type definition for element 'bpsim:ControlParameters'.
      16:42:23,364 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 9) (null: 99, 61): cvc-elt.4.2: Cannot resolve 'bpsim:Parameter' to a type definition for element 'bpsim:Probability'.
      

      "xsi:schemaLocation" attribute will be recovered once you edit/save the process so the errors will go away.

            rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
            rhn-support-tkobayas Toshiya Kobayashi
            Kirill Gaevskii Kirill Gaevskii
            Kirill Gaevskii Kirill Gaevskii
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: