cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Kofax Release Script for Alfresco & Ascent

pashu
Champ in-the-making
Champ in-the-making
I've a problem with the Kofax Release Script for Alfresco.

I have a custom type in Alfresco and i can see it in the web client interface of Alfresco but i cannot see the properties in Ascent.

Do i forget to set something in the XML file?

Versions used: Ascent: 7.50.139, Alfresco: 2.1, Kofax Release Script for Alfresco: 1.0.1


<?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>TestCustomType</description>
   <author>ELCA</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>Value A</value>
               <value>Value B</value>
               <value>Value C</value>
               <value>Value D</value>
            </list>
         </parameter>
      </constraint>
      <constraint name="sc:constraintFormationType" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>Value A</value>
               <value>Value B</value>
               <value>Value C</value>
               <value>Value D</value>
            </list>
         </parameter>
      </constraint>
   </constraints>   

   <types>
      <type name="sc:doc">
         <title>TestCustomType</title>
         <parent>cm:content</parent>
         
         <properties>
            <property name="sc:name">
               <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>

4 REPLIES 4

larrys
Champ in-the-making
Champ in-the-making
After we made this change, the properties started showing up in the Ascent dialogue. Good luck.
In your types section, try defining your properties as mandatory aspects.
Here is an example of one, and you can take it from there.

<types>
  <type name="sc:doc">
    <title>TestCustomType</title>
    <parent>cm:content</parent>
    <mandatory-aspects>
      <aspect>sc:name</aspect>
    </mandatory-aspects>
  </type>
</types>
<aspects>
  <aspect name="sc:name">
    <title>Name</title>
    <properties>
      <property name="sc:name">
        <title>Name</title>
        <type>d:text</type>
        <mandatory>true</mandatory>
      </property>
    </properties>
  </aspect>
  *** REPEAT ABOVE FOR THE REST OF YOUR ASPECTS ***
</aspects>

pashu
Champ in-the-making
Champ in-the-making
Thank you it works!

Seem that the tag <title> must also be defined for every properties in order to see them in Kofax Release Script in Ascent.

mandy81
Champ in-the-making
Champ in-the-making
Hello pashu,

in the Alfresco forum I saw that you had the same Problem as I. I work with Invoices in Ascent and have a lot of Indexfields. I use Ascent Capture 7.5 and Alfresco Community 2.0 with the Alfresco Release Script 1.0.1. The Release Script works successfully but the only thing I see is the TIF-File without the Indexdata. I want to search the Images by Indexfields like invoice number or so on. I´ve heard that I have to create a document model in Alfresco and after this I have to adapt the release script but my knowledge base is not so good in this case. I want to ask you maybe you can help me? What are the steps I have to do? How I create the document model, what I have to do with the xml-file and how I can adapt the Release Script? Please can you help me? It´s very important to me because this is a section of my dissertation.

Thanks and Greets Mandy

mandy81
Champ in-the-making
Champ in-the-making
Hello pashu,

it works! Your xml-file gave me the right impulse!

Thanks Mandy