Show last authors
1 = Introduction =
2
3 the AddFileConnector aims to return the fileIDs of a specific connector included in a scenario.
4
5 = Uses =
6
7 (% class="box infomessage" %)
8 (((
9 the syntax to use AddFileConnector is:  //**AddFileConnector({connectorAlias} , {sensType}, {fileType})**//
10 )))
11
12 where :
13
14 * connectorAlias: the alias used in the scenario to define a connector. (SplitXML1 , AlertJob2 ...)
15 * sensType: input or output files ( //IN //or //OUT //), it's optional and takes as default value //ANY.//
16 * fileType: EDI, Format, StyleSheet ...
17
18
19 === Examples of use ===
20
21 [[image:2023-04-03_13h01_17.png||height="231" width="709"]]
22
23
24 In this example, we split an input file into 6 XML files and then we merge them to access the XMLToXML and retrieve all IDs of split files.
25
26 the XSL used is :
27
28 {{code language="XML"}}
29 <?xml version="1.0" encoding="windows-1251"?>
30 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:ixf="http://www.ixPath.com/Function" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ix="localFunction">
31 <xsl:output method="xml" indent="yes"/>
32 <!-- Beginning of the Translation -->
33 <xsl:template match="/">
34 <iXDOC>
35 <returnedFiles><xsl:value-of select="ixf:AddFileConnector('SplitXML1')"/></returnedFiles>
36 </iXDOC>
37 </xsl:template>
38
39 </xsl:stylesheet>
40 {{/code}}
41
42 and as output, we find all IDs are separated by space :
43
44 {{code language="XML"}}
45 <?xml version="1.0" encoding="UTF-8"?>
46 <iXDOC xmlns:ixf="http://www.ixPath.com/Function"
47 xmlns:xs="http://www.w3.org/2001/XMLSchema"
48 xmlns:ix="localFunction">
49 <returnedFiles>642abf4085e08549b40daf00 642abf4085e08549b40daf01 642abf4085e08549b40daf02 642abf4085e08549b40daf03 642abf4085e08549b40daf04 642abf4085e08549b40daf05</returnedFiles>
50 </iXDOC>
51
52 {{/code}}
53
54
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian