<process name="default">
<rule name="count">
<condition>number(//x/text())<= number(//y/text())</condition>
</rule>
<sequence name="Sequence Start">
<operation name="FTP Client Begin Session Service">
<participant name="FTPClientBeginSession"/>
<output message="FTPClientBeginSessionServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="FTPClientAdapter">FTPClientAdapter</assign>
<assign to="RemoteHost">172.17.15.47</assign>
<assign to="RemotePasswd">murali</assign>
<assign to="RemotePort">8114</assign>
<assign to="RemoteUserId">murali</assign>
<assign to="UsingRevealedPasswd">true</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<operation name="FTP Client GET Service">
<participant name="FTPClientGet"/>
<output message="FTPClientGetServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="RemoteFilePattern">*.*</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<operation name="FTP Client LIST Service">
<participant name="FTPClientList"/>
<output message="FTPClientListServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="ConnectionType">PASSIVE</assign>
<assign to="NamesOnly">YES</assign>
<assign to="SessionToken" from="/ProcessData/SessionToken/text()"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<assign name="Assign" to="x">1</assign>
<assign name="Assign" to="y" from="count(//Name)"></assign>
<choice name="loop_start">
<select>
<case ref="count" activity="seq_start"/>
</select>
<sequence name="seq_start">
<assign name="Assign" to="PrimaryDocument" from="//*[starts-with(name(),string(/ProcessData/ListNames/Name[position()=//x/text()]/text()))]/@SCIObjectID"></assign>
<operation name="File System Adapter">
<participant name="E5FileSystem"/>
<output message="FileSystemInputMessage">
<assign to="." from="*"></assign>
<assign to="Action">FS_EXTRACT</assign>
<assign to="bootstrap">false</assign>
<assign to="extractionFolder">C:\Miracle\Murali\extraction</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<assign name="Assign" to="x" from="//x/text()+1"></assign>
<repeat name="Repeat" ref="loop_start"/>
</sequence>
</choice>
<operation name="FTP Client End Session Service">
<participant name="FTPClientEndSession"/>
<output message="FTPClientEndSessionServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="SessionToken" from="/ProcessData/SessionToken/text()"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</process>
No comments:
Post a Comment