To define a custom model, in some cases, you must first create a custom model to contain the new aspect and tags to be assigned by the user. In this example, the model uses a prefix of lcProcess, the aspect is called lcProcess:reviewer, and the property is called lcProcess:reviewDescription.Example: Creating custom tags modelThis example contains a sample implementation of the review and approval custom model and is defined in the liveCycleProcessModel.xml file.<?xml version="1.0" encoding="UTF-8"?><!-- Definition of new Model --><model name="lcProcess:model" xmlns="http://www.alfresco.org/model/dictionary/1.0"><!--Optional metadata about the model --><description>LiveCycle Process Model</description><author>LiveCycle Content Service ES</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.adobe.com/lc/process/1.0" prefix="lcProcess"/></namespaces><types><type name="lcProcess:reviewAndApproval"><parent>cm:content</parent><properties><!-- Task Description --><property name="lcProcess:reviewDescription"><title>Review Description</title><type>d:text</type></property></properties><mandatory-aspects><aspect>lcProcess:reviewer</aspect></mandatory-aspects></type></types><aspects><!-- --><!-- Task Reviewer --><!-- --><aspect name="lcProcess:reviewer"><associations><association name="lcProcess: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></aspect></aspects></model>
| Programming with LiveCycle ES (LiveDocs) |
| Adobe LiveCycle ES Update 1 |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/001565_2.html