IBM Support

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

Question & Answer


Question

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

Cause

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.

Answer

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

[{"Product":{"code":"SSUBFB","label":"IBM Engineering Lifecycle Optimization - Publishing"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"1.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Publishing Engine

Document Information

Modified date:
16 June 2018

UID

swg21621662