Variable assignment
Monday, April 05, 2010
2:55 PM
Variable assignment
During a sequence, one can assign  a value to a variable. 
Example: 
<informationType name="Boolean" type="xsd:boolean"
<description type="documentation">
Boolean type for use in loop control
</description>
</informationType>
...
<variableDefinitions>
<variable name="barteringDone"
informationType="tns:Boolean" roleTypes="tns:SellerRole">
<description type="documentation">
Variable used to control loop exit.
</description>
</variable>
</variableDefinitions>
...
<assign roleType="tns:SellerRole">
<description type="documentation">
Initialise Loop Variable
</description>
<copy name="setBarteringDone">
<description type="documentation">
Set barteringDone to false
</description>
<source expression="false()"/>
<target variable="cdl:getVariable('barteringDone','','')"/>
</copy>
</assign>
Pasted from <[link]> 