Tallis Training

Reordering sources

In this tutorial you will work with a process-description that contains an enquiry called enquiry1. This enquiry has three sources:

  • Day – a text source with five range values: Monday, Tuesday, Wednesday, Thursday, Friday
  • Month – a text source with twelve range values: January, February, ... , December
  • Year – a text source

You can either create this process-description yourself, or download the ready-made WEC_tutorial2 from the World > Tutorials > Customisation_samples folder in the ACL Web Repository.

1. Run the Process-Description Locally in a Web Browser

For more information on running a process-description locally see step 1 of tutorial 1.

Going from left to right and from top to bottom, the sources are displayed alphabetically.

Choose a day and a month and enter a year; then click Confirm to complete the process.

2. Create a Mapping File

In Apache Software Foundation\Tomcat 5.0\webapps\CustomTallis\customisations\mappings you will find examples of mapping files. Open the file entitled tutorial2mapping.xml.

The mapping file identifies the three sources, each with an optional position attribute. This attribute determines the position of the sources on the screen. The current settings mean that the order of the sources will now be Month, Day, Year.

3. Point to the Mapping File

In the Context field of the top-level plan of the process-description, type the following lines:

#metadata
tallis.content=/customisations/mappings/tutorial2mapping.xml

4. Run the Process-Description Locally in a Web Browser

Run the process-description.

Going from left to right and from top to bottom, the Month source is displayed first, then Day and then Year.

5. Display a Drop-Down List for Days

Modify the mapping file so that the order of the sources is Month, Year, Day.

This is what the modified sources tag should look like:

<pf:sources>

<pf:source definition="Day" position="3"/>

<pf:source definition="Month" position="1"/>

<pf:source definition="Year" position="2"/>

</pf:sources>

Run the process-description in a web-browser to test your changes.

Top | «Prev | Next»

Last update: