AnsweredAssumed Answered

J'ai un problème avec l'outil "Kofax Release Script...

Question asked by pashu on Jul 11, 2007
Latest reply on Sep 6, 2007 by michaelh
J'ai un problème avec l'outil "Kofax Release Script for Alfresco" http://forge.alfresco.com/projects/kofax-alfresco/
de Alfresco-forge.

Celui-ci permet d'importer des documents scannés de Ascent dans Alfresco.

Dans Alfresco, j'ai défini un type de document (voir XML plus bas).

Hors via l'outil "Kofax Release Script for Alfresco" intégré à Ascent, je n'arrive pas à voir les propriétés du type que j'ai défini.

Ai-je oublié quelque chose dans la définition de mon type?

<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>Service</description>
   <author>Pashu</author>
   <version>1.0</version>

   <!– Imports are required to allow references to definitions in other models –>
   <imports>
      <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
   </imports>

   <!– Introduction of new namespaces defined by this model –>
   <namespaces>
      <namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
   </namespaces>

   <constraints>
      <constraint name="sc:constraintDocumentType" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>A</value>
               <value>B</value>
               <value>C</value>
               <value>D</value>
            </list>
         </parameter>
      </constraint>
      <constraint name="sc:constraintFormationType" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>A</value>
               <value>B</value>
               <value>C</value>
               <value>D</value>
            </list>
         </parameter>
      </constraint>
   </constraints>   

   <types>
      <type name="sc:doc">
         <title>Service Academic (SAC)</title>
         <parent>cm:content</parent>
         
         <properties>
            <property name="sc:familyname">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="sc:firstname">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="sc:birthdate">
               <type>d:date</type>
               <mandatory>true</mandatory>
            </property>
            <property name="sc:archiveDate">
               <type>d:date</type>
               <mandatory>false</mandatory>
            </property>
            <property name="sc:documentType">
               <type>d:text</type>
               <mandatory>true</mandatory>
               <constraints>
                  <constraint ref="sc:constraintDocumentType" />
               </constraints>
            </property>
            <property name="sc:formationType">
               <type>d:text</type>
               <mandatory>true</mandatory>
               <constraints>
                  <constraint ref="sc:constraintFormationType" />
               </constraints>
            </property>
            <property name="sc:documentDate">
               <type>d:date</type>
               <mandatory>true</mandatory>
            </property>
            <property name="sc:studentNo">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
         </properties>
         
         <mandatory-aspects>
           <aspect>cm:generalclassifiable</aspect>
         </mandatory-aspects>
      </type>
   </types>
</model>

Outcomes