uCosminexus Service Platform, Basic Development Guide
This activity defines repeated processing of one or more activities according to a given condition.
The following figure shows repeated processing that uses while activities.
Figure 5-12 Repeated processing using while activities
When a while activity is defined, one or more processes can be repeated according to a given condition. You can also define a repeating process inside another repeating process, as exemplified by Repetition 3 in the above figure.
In the while activity, you can select either of the following repeat method.
Repeat process using the condition specification method and list specification method is described as follows:
Following figure shows the repeat process using the condition specification method.
Figure 5-13 Repeat method using the condition specification format
In condition specification method, specify the repetition condition expression in XPath format. Activity within the while activity is repeated till the evaluation result of condition expression is true.
Following figure shows the repetition process using the list specification method.
Figure 5-14 Repetition process using the list specification method
In list specification method, repetition process is executed in the following flow:
Create variables and repeat element variable for generating repetition list, in the development environment and specify those in Repetition list settings dialog.
To define a receive activity:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema elementFormDefault="qualified" targetNamespace="http://example.com/sample" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="loop-element"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="5" minOccurs="0" name="child-element"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> |
<?xml version="1.0" encoding="UTF-8"?> <xs:schema elementFormDefault="qualified" targetNamespace="http://example.com/sample" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="child-element"/> </xs:schema> |
You must consider following points at the time of definition, when specifying the list specification method.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.