SurveyRoutingXMLMDSC reference
The question routing is the most difficult survey feature to transform into a neutral format. The routing is represented by a sequence of instructions, which are known as the routing script. The routing script must evaluate conditional expressions to determine the survey route. The script must also interact with the Interview Object Model (IOM) (see
What is IOM?) to adjust the questions that are asked (for example, filtering categories and changing styles). The routing script uses the
UNICOM Intelligence Function Library to assist with those tasks.
A mobile application can provide full support, for all possible disconnected surveys, by running routing script and replicating the functions of both the IOM and Function Library.
It is possible to represent a subset of routing functions by using routing items. The subset can be expressed as any UNICOM Intelligence Author generated routing that does not use a
Script routing item (also known as Author support level). The mobile application must be able to evaluate expressions, which might require the Function Library. The capability is made possible by the expression evaluator: see
Expression Evaluator reference.
The Routing XML contains several element types.
▪The Routing element is the main routing container and can also be used to contain routing sections that might be inside If blocks (or other constructs).
▪Statement items describe different statement types (including Ask, Conditional, and Goto). The ScriptItem element covers all statement types that are not included in the Author support level, including complicated scripts and constructs (such as Select).
▪The Routing XML includes elements that support expression evaluation (Expression, Opcodes, and Opcode).
Routing items that are available in Author are transferred to the Routing XML. The routing contains a few differences.
▪Author Comment routing items are not included in the Routing XML.
▪Author IfGoto routing items are included in the Routing XML as IfBlocks.
▪Response based Gotos are included in the Routing XML as IfBlocks.
The routing items are run in the order they appear in the XML.
See also