]> Creatis software - vip-workflow-odin.git/blob - workflow/odin.gwendia
SMP folder selection
[vip-workflow-odin.git] / workflow / odin.gwendia
1 <?xml version="1.0" encoding="UTF-8"?>
2 <workflow name="odin" version="0.1">
3
4   <description>There is no description for this application. Please contact the developers to know what it is about.</description>
5
6   <interface>
7     <source name="ProData" type="uri">
8       <source-comment>&lt;b&gt;&lt;font color="blue"&gt;new input&lt;/font&gt;&lt;/b&gt;: Pro file
9       </source-comment>
10     </source>
11     <source name="SmpData" type="uri">
12       <source-comment>&lt;b&gt;&lt;font color="blue"&gt;new input&lt;/font&gt;&lt;/b&gt;: Smp file
13       </source-comment>
14     </source>
15     <source name="ResultsDirectory" type="uri">
16       <source-comment>&lt;b&gt;&lt;font color="blue"&gt;new input&lt;/font&gt;&lt;/b&gt;: add description here...
17       </source-comment>
18     </source>
19   </interface>
20
21   <processors>
22     <processor name="odin" >
23       <in name="input2" type="string" depth="0" />
24       <in name="input1" type="uri" depth="0" />
25       <in name="input0" type="uri" depth="0" />
26       <iterationstrategy>
27         <cross>
28           <port name="input0" />
29           <port name="input1" />
30           <port name="input2" />
31         </cross>
32       </iterationstrategy>
33       <gasw descriptor="[GASW_DIR]/odin.xml"/>
34     </processor>
35     <processor name="append-date" >
36       <in name="dir" type="uri" depth="0" />
37       <out name="result" type="string" depth="0" />
38       <beanshell>/*----------Beginning of Beanshell------------*/
39                         import java.text.DateFormat;
40                         import java.text.SimpleDateFormat;
41                         import java.util.Date;
42
43 DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy_HH:mm:ss");
44 String result = dir.toString()+"/"+(dateFormat.format(System.currentTimeMillis()));
45 /*------------End of Beanshell------------*/
46       </beanshell>
47     </processor>
48   </processors>
49
50   <links>
51       <link from="SmpData" to="odin:input1" />
52       <link from="ProData" to="odin:input0" />
53       <link from="ResultsDirectory" to="append-date:dir" />
54       <link from="append-date:result" to="odin:input2" />
55   </links>
56
57 </workflow>