AnsweredAssumed Answered

Namespace prefix <prefix> is not mapped to a namespace URI

Question asked by piousbox on Sep 2, 2010
I deployed the following model using repo admin console:

<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.alfresco.org/model/dictionary/1.0"              
       name="mtec:editorial_cycle_model">

  <description>1st review and approve cycle (web-only, editor and copy editor and author only).</description>
  <author>piousbox</author>
  <published>2010-09-02</published>
  <version>1.0</version>

  <imports>
     <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
     <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
     <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"></import>
     <import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"></import>
  </imports>

  <namespaces>
     <namespace uri="http://mediatecpub.com/namespaces/mediatec/1.0" prefix="mtec"/>
  </namespaces> 

  <types>  
     <!–type name="mtec:mobject">
        <title>1st edit/copyedit/author review+approve cycle</title>
        <parent>cm:content</parent>
         <properties>
      <property name="mtec:is_editor_approved_2">
              <type>d:int</type>
         <default>0</default>
           </property>
          </properties>
     </type–>

        <type name="mtec:author_develops">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="mtec:editor_assigns_authors">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="mtec:editor_edits">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="mtec:editor_approves">
            <parent>bpm:workflowTask</parent>
            <properties>
           <property name="mtec:is_editor_approved">
              <type>d:int</type>
         <default>0</default>
           </property>
            </properties>
        </type>

        <type name="mtec:copy_editor_edits">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="mtec:copy_editor_approves">
            <parent>bpm:workflowTask</parent>
            <properties>
           <property name="mtec:is_copyeditor_approved">
         <type>d:int</type>
         <default>0</default>
           </property>
            </properties>
        </type>

        <type name="mtec:editor_edits2">
            <parent>bpm:workflowTask</parent>
        </type>
   </types>
</model>

now, when I try to deploy the following process definition, I get the following error.

<?xml version="1.0" encoding="UTF-8"?>

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="mtec:vp_20100902_test0">


   <swimlane name="editor">

      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">

         <actor>#{bpm_assignee}</actor>

      </assignment>

   </swimlane>



   <swimlane name="author">

      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">

         <actor>#{people.getGroup('GROUP_authors')}</actor>

      </assignment>

   </swimlane>



   <swimlane name="copy_editor">

      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">

         <actor>#{people.getGroup('GROUP_copy editors')}</actor>

      </assignment>

   </swimlane>



   <start-state name="start">

      <task name="mtec:editor_assigns_authors" swimlane="editor">
      </task>

      <transition name="" to="n1" />

   </start-state>



    <task-node name="n1">

        <task name="mtec:author_develops" swimlane="author">

        </task>

        <transition to="n2" name="" />

    </task-node>



    <task-node name="n2">

        <task name="mtec:editor_edits" swimlane="editor">

        </task>

        <transition to="n3" name="" />

    </task-node>



    <task-node name="n3">

        <task name="mtec:editor_approves" swimlane="editor">

        </task>

        <transition to="n1" name="rejected" />

        <transition to="n4" name="approved" />

    </task-node>



    <task-node name="n4">

        <task name="mtec:copy_editor_edits" swimlane="copy_editor">

        </task>

        <transition to="n5" name="" />

    </task-node>



    <task-node name="n5">

        <task name="mtec:copy_editor_approves" swimlane="copy_editor">

        </task>

        <transition to="n7" name="rejected" />

        <transition to="n6" name="approved" />

    </task-node>



    <task-node name="n7">

        <task name="mtec:editor_edits2" swimlane="editor">

        </task>

        <transition to="n4" name="" />

    </task-node>



    <end-state name="n6" />



   <!– trash

   <task-node name="review">

      <task name="wf:myReviewTask" swimlane="editor" />

      <transition name="approve" to="approve" />

      <transition name="reject" to="reject" />

   </task-node>



   <node name="approve">

      <event type="node-enter">

         <script>

            <variable name="reviewResult" access="write" />

            <expression>

               reviewResult = "approved";

            </expression>

         </script>

      </event>

      <transition to="completed" />

   </node>



   <node name="reject">

      <event type="node-enter">

         <script>

            <variable name="reviewResult" access="write" />

            <expression>

               reviewResult = "rejected";

            </expression>

         </script>

      </event>

      <transition to="completed" />

   </node>



   <task-node name="completed">

      <task name="wf:myCompleteReviewTask" swimlane="editor" />

      <transition name="" to="n6" />

   </task-node–>



</process-definition>

org.alfresco.service.namespace.NamespaceException: Namespace prefix mtec is not mapped to a namespace URI

What causes this error? As I was developing stuff earlier today I believe the same process definition used not cause this problem… Any help would be appreciated.

Outcomes