AnsweredAssumed Answered

Custom Metadata in Task-Edit Page

Question asked by dave984 on May 3, 2014
Latest reply on May 3, 2014 by dave984
Hi all, i've designed a simple workflow in Activity and deployed in Alfresco.
Referring to the Alfresco wiki i would see my custom metadata not only in start-workflow page but also in task-edit page.
Here is the workflow model:

    <imports>
        <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
        <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
    </imports>
    <namespaces>
        <namespace uri="http://www.someco.it/model/workflow/1.0" prefix="scwf" />
    </namespaces>
    <types>
        <type name="scwf:submitTask">
            <parent>bpm:startTask</parent>
            <properties>
                <property name="scwf:helloName">
                    <type>d:text</type>
                    <mandatory>true</mandatory>
                    <multiple>false</multiple>
                </property>
            </properties>
            <mandatory-aspects>
          <aspect>scwf:workInfo</aspect>
            </mandatory-aspects>
        </type>       
    </types>
    <aspects>       
             <aspect name="scwf:workInfo">
      <properties>
         <property name="scwf:workDescription">
            <type>d:text</type>
            <mandatory>true</mandatory>
         </property>
      </properties>
        </aspect>
      </aspects>      
</model>


And here the snippet from share-config-custom.xml:

<config evaluator="task-type" condition="scwf:submitTask">   
      <forms>
         <form>
            <field-visibility>
          <show id="bpm:workflowDescription" />
               <show id="packageItems" />             
               <show id="scwf:helloName" />
               <show id="transitions" />              
               <show id="scwf:workDescription" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
                <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
                <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
                <set id="items" appearance="title" label-id="workflow.set.items" />
                <set id="response" appearance="title" label-id="workflow.set.response" />
                <field id="bpm:workflowDescription" label-id="workflow.field.message">
                    <control template="/org/alfresco/components/form/controls/textarea.ftl">
                        <control-param name="style">width: 95%</control-param>
                    </control>
                </field>
                <field id="packageItems" set="items" />
                <field id="transitions" set="response" />                                                          
                <field id="scwf:workDescription" set="response">
          <control template="/org/alfresco/components/form/controls/textarea.ftl" />
      </field>
                <field id="scwf:helloName" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>

As i said i can completely see my custom metadata in start-workflow page…why not in task-detail page?

Outcomes