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

<model name="wf:workflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <description>Content-oriented Workflows Model</description>
   <author>Alfresco</author>
   <version>0.1</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"/>
   </imports>

   <namespaces>
      <namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
   </namespaces>
      
   <types>

      <!--                               -->
      <!--  Basic Review & Approve Tasks -->               
      <!--                               -->
      
      <type name="wf:submitReviewTask">
         <title>Submit Review Task</title>
         <parent>bpm:workflowTask</parent>
         
         <properties>

            <property name="wf:reviewDueDate">
               <title>Review Due Date</title>
               <type>d:date</type>
            </property>

            <property name="wf:reviewPriority">
               <title>Review Priority</title>
               <type>d:int</type>
               <default>2</default>
               <constraints>
                  <constraint ref="bpm:allowedPriority"/>
               </constraints>
            </property>
         
         </properties>

         <associations>

            <association name="wf:reviewer">
               <title>Reviewer</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>cm:person</class>
                  <mandatory>true</mandatory>
                  <many>false</many>
               </target>
            </association>

         </associations>

         <overrides>

            <property name="bpm:packageActionGroup">
               <default>workflow_collection_actions</default>
            </property>

            <property name="bpm:packageItemActionGroup">
               <default>workflow_item_collection_actions</default>
            </property>

         </overrides>

      </type>


      <!--                               -->
      <!--  Basic Review & Approve Tasks -->               
      <!--                               -->
      
      <type name="wf:reviewTask">
         <title>Review Task</title>
         <parent>bpm:workflowTask</parent>
         
         <overrides>
         
            <property name="bpm:packageItemActionGroup">
               <default>workflow_item_edit_actions</default>
            </property>
            
         </overrides>

      </type>
   
   </types>
   
</model>