IBM Support

How to re-initialize queries inside an iteration in Rational Publishing Engine

Technote (FAQ)


How do you re-initialize queries on elements within an iteration element in IBM Rational Publishing Engine (RPE)?


Being able to iterate on source data, for example, artifacts in IBM Rational Requirements Composer (RRC), and assign different values each time accordingly, than calling snippet references as many times.


Insert Dynamic data source configuration element corresponding to the element that has queries, so the queries are reinitialized at each iteration. For example:

  1. Insert a container in your RPE template

  2. Insert an iteration element inside this container

  3. Build your java scripting conditions using variables in RPE

  4. Also, insert a container inside this iteration element that has queries on it, such as Module/Object

  5. Make sure you configure the data source for this query through a Dynamic Data Source Configuration element for being able to reinitialize the query every time

    Note: If you do not use a dynamic data source configuration element, queries are initialized only once throughout the iteration cycle. Hence; the values are evaluated for the query only once.

Related information

Adding an iteration element

Document information

More support for: Rational Publishing Engine
General Information

Software version: 1.2

Operating system(s): Windows

Reference #: 1621662

Modified date: 04 January 2013

Translate this page: