docs.intersystems.com
Home  /  Application Development: Creating Productions  /  Business Process and Data Transformation Language Reference  /  BPL Elements  /  <until>


Business Process and Data Transformation Language Reference
<until>
[Back]  [Next] 
InterSystems: The power behind what matters   
Search:  


Perform activities repeatedly until a condition is true.
Synopsis
<until condition='context.IsApproved="1"'>   ... </until>
Details
Attribute or Element Description Value
condition attribute Required. This expression is evaluated at the end of each pass through the activities in the <until> element. Once true, it stops execution of the <until> element. An expression that evaluates the integer value 1 (if true) or 0 (if false). This expression must use the scripting language specified by the containing <process> element.
name, disabled, xpos, ypos, xend, yend attributes See Common Attributes and Elements.”  
<annotation> element
Other elements Optional. <until> may contain zero or more of the following elements in any combination: <alert>, <assign>, <branch>, <break>, <call>, <code>, <continue>, <delay>, <empty>, <flow>, <foreach>, <if>, <label>, <milestone>, <reply>, <rule>, <scope>, <sequence>, <sql>, <switch>, <sync>, <throw>, <trace>, <transform>, <until>, <while>, <xpath>, or <xslt>.  
Description
The <until> element defines a sequence of activities that are repeatedly executed until a logical expression evaluates to the integer value 1 (true). The expression is re-evaluated after each loop through the sequence.
To fine-tune loop execution, include <break> and <continue> elements within an <until> element. See the descriptions of these elements for details.