Chapter 2. Using XForms in the Workflow

Table of Contents

2.1. Repository
2.2. Static Versus Dynamic Generation of the XForms

2.1. Repository

Simple files located on a server directory are used to store XForm and language documents. Each project has its own folder, and each activity has a folder inside its project's folder. The repository.xml file specifies the XForm files associated with projects and activities. In the example, an activity (approval1) has an associated XForm file, named xform.xhtml; however, its project does not have an XForm file.

repository.xml file example:

<repository>
      <project>
         <projectname>XformEditorDemo</projectname>
         <projectversion>1.0</projectversion>
         <activities>
            <activity>
                 <activityname>approval1</activityname>
                 <activityxformfile>xform.xhtml</activityxformfile>
            </activity>
         </activities>
      <projectxformfile>xform.xhtml</projectxformfile>
      </project>
 </repository>