<process name="default">
<rule name="looping">
<condition>number(countMsgID/text())>=number(//loop_counter/text())</condition>
</rule>
<sequence name="Main_Seq">
<assign name="Assign"
to="loop_counter">1</assign>
<assign name="Assign"
to="countMsgID"
from="count(//RoutingRequest/MessageId)"></assign>
<sequence name="Start
Loop">
<choice name="Choice_start">
<select>
<case ref="looping"
activity="loopStart"/>
</select>
<sequence name="loopStart">
<operation name="Mailbox
Extract Begin Service">
<participant
name="MailboxExtractBegin"/>
<output
message="MailboxExtractBeginServiceTypeInputMessage">
<assign to="."
from="*"></assign>
<assign
to="CommitNow">YES</assign>
<assign to="MessageId"
from="/ProcessData/RoutingRequest/RoutingRequest/MessageId/text()[position()=//loop_counter/text()]"></assign>
</output>
<input message="inmsg">
<assign to="."
from="*"></assign>
</input>
</operation>
<operation name="Invoke
Sub-Process">
<participant
name="InvokeSubProcessService"/>
<output
message="InvokeSubProcessServiceTypeInputMessage">
<assign to="."
from="*"></assign>
<assign
to="INVOKE_MODE">ASYNC</assign>
<assign
to="WFD_NAME">MyBootStrapProcess</assign>
</output>
<input message="inmsg">
<assign to="."
from="*"></assign>
</input>
</operation>
<assign name="Assign"
to="loop_counter"
from="number(loop_counter/text())+1"></assign>
<repeat name="Repeat"
ref="Start Loop"/>
</sequence>
</choice>
</sequence>
</sequence>
</process>
Sub-Process:
<process name="default">
<sequence name="Sequence
Start">
<assign name="Assign"
to="OrigPrimaryDoc"
from="PrimaryDocument/@SCIObjectID"></assign>
<operation name="Lightweight
JDBC Adapter">
<participant
name="LightweightJDBCAdapterQuery"/>
<output
message="LightweightJDBCAdapterTypeInputMessage">
<assign to="."
from="*"></assign>
<assign
to="param1">Code_List_Murali</assign>
<assign to="param2"
from="/ProcessData/MailboxPath/text()"></assign>
<assign
to="paramtype1">String</assign>
<assign
to="paramtype2">String</assign>
<assign
to="pool">db2Pool</assign>
<assign
to="query_type">SELECT</assign>
<assign
to="result_name">result</assign>
<assign
to="row_name">xref</assign>
<assign to="sql">select
TEXT1 from CODELIST_XREF_ITEM a, CODELIST_XREF_VERS b where
a.LIST_VERSION = b.DEFAULT_VERSION and a.LIST_NAME=? and
a.LIST_NAME=b.LIST_NAME and a.SENDER_ITEM =?</assign>
</output>
<input message="inmsg">
<assign to="."
from="*"></assign>
</input>
</operation>
<assign name="Assign"
to="." from="DocToDOM(PrimaryDocument)"></assign>
<assign name="Assign"
to="PrimaryDocument"
from="OrigPrimaryDoc/@SCIObjectID"></assign>
<operation name="Translation">
<participant
name="Translation"/>
<output
message="TranslationTypeInputMessage">
<assign to="."
from="*"></assign>
<assign to="map_name"
from="/ProcessData/result/xref/TEXT1/text()"></assign>
</output>
<input message="inmsg">
<assign to="."
from="*"></assign>
</input>
</operation>
</sequence>
</process>