AnsweredAssumed Answered

Association in workflow doesnot work in 3.4 (works in 3.0)

Question asked by johnhelen on Jan 2, 2011
Latest reply on Sep 18, 2011 by evgenikka
Hello

I created a workflow and deployed and work well in Alfresco 3.0. However, I cannot deploy it into 3.4,

Here is the type "submitCustomTask" for my Model


<imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
      <import uri="http://www.alfresco.org/model/wcmworkflow/1.0" prefix="wcmwf" />
      <import uri="http://www.alfresco.org/model/wcmappmodel/1.0" prefix="wca"/>      
   </imports>

   <!– Introduction of new namespaces defined by this model –>
   <namespaces>
      <namespace uri="http://www.my.com/model/workflow/1.0"
         prefix="mywf" />
   </namespaces>
   <types>
         <type name="mywf:submitCustomTask">
         <parent>wcmwf:startTask</parent>
         <associations>
            <association name="wcmwf:webproject">   
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>wca:webfolder</class>
                  <mandatory>true</mandatory>
                  <many>false</many>
               </target>
            </association>
         </associations>
         <mandatory-aspects>
            <aspect>wcmwf:submission</aspect>
         </mandatory-aspects>
      </type>

In the code, there is an association  <association name="wcmwf:webproject">

It works well with Alfresco 3.0

When I tried to deploy it into Alfresco 3.4, I got error when restart Alfresco server. It complained that it cannot create Association with name "wcmwf:webproject" as namespace "http://www.alfresco.org/model/wcmworkflow/1.0" was not declared (but I already imported it).

When I change from

<association name="wcmwf:webproject">
to my custom prefix namespace:

<association name="mywf:webproject">

I can deploy it but when I test it in the Alfresco UI, I got this message:
"Mandatory task properties have not been provided: {http://www.my.com/model/workflow/1.0}webproject"

I donot know what happen as I am not good with workflow, can anyone help

Many thanks
john

Outcomes