-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAMF_BP_TEST_SFTP_PROFILE.xml
109 lines (103 loc) · 4.38 KB
/
AMF_BP_TEST_SFTP_PROFILE.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<process name="AMF_BP_TEST_SFTP_PROFILE">
<sequence name="Main_start">
<assign to="." from="DocToDOM(PrimaryDocument)"></assign>
<assign to="/ProcessData/Details/CLA" from="sci-get-property('amf',concat('SFTP_CLA','_',//UserType/text()))"></assign>
<operation name="Lightweight JDBC Adapter">
<participant name="LightweightJDBCAdapterQuery"/>
<output message="LightweightJDBCAdapterTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="param1" from="//ProfileName/text()"></assign>
<assign to="paramtype1">String</assign>
<assign to="pool">db2Pool</assign>
<assign to="query_type">SELECT</assign>
<assign to="result_name">Result</assign>
<assign to="row_name">Row</assign>
<assign to="sql">select PROFILE_ID from SFTP_PROF where NAME = ?</assign>
</output>
<input message="inmsg">
<assign to="." from="DocToDOM(PrimaryDocument,'false')"></assign>
</input>
</operation>
<operation name="SFTP Client Begin Session Service">
<participant name="SFTPClientBeginSession"/>
<output message="SFTPClientBeginSessionServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="ProfileId" from="//PROFILE_ID/text()"></assign>
<assign to="SFTPClientAdapter" from="//ProcessData/Details/CLA/text()"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<operation name="SFTP Client CD Service">
<participant name="SFTPClientCd"/>
<output message="SFTPClientCdServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="Directory" from="concat('/',//Directory/text())"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<operation name="SFTP Client End Session Service">
<participant name="SFTPClientEndSession"/>
<output message="SFTPClientEndSessionServiceTypeInputMessage">
<assign to="." from="*"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<operation name="Release Service">
<participant name="ReleaseService"/>
<output message="ReleaseServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="TARGET">PrimaryDocument</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<assign to="Result/Output/Status">SFTP Connection successful</assign>
<assign to="." from="DOMToDoc(/ProcessData/Result/Output,'PrimaryDocument')"></assign>
<operation name="HTTP Respond Service">
<participant name="HttpRespond"/>
<output message="HttpRespondServiceInputMessage">
<assign to="." from="*"></assign>
<assign to="doc-has-headers">false</assign>
<assign to="status-code">200</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<onFault>
<sequence name="Onfault_start">
<operation name="Release Service">
<participant name="ReleaseService"/>
<output message="ReleaseServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="TARGET">PrimaryDocument</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<assign to="Failed_Reason/Status/ServiceError" from="/ProcessData/ErrorMessage/text()"></assign>
<assign to="Failed_Reason/Status/Error_Message" append="true" >SFTP Connection Failed</assign>
<assign to="." from="DOMToDoc(/ProcessData/Failed_Reason,'PrimaryDocument')"></assign>
<operation name="HTTP Respond Service">
<participant name="HttpRespond"/>
<output message="HttpRespondServiceInputMessage">
<assign to="." from="*"></assign>
<assign to="doc-has-headers">false</assign>
<assign to="status-code">200</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</onFault>
</sequence>
</process>