]> Creatis software - vip-workflow-odin.git/blob - workflow/odin_fisp.gwendia
odin fisp and epi workflow v0.1
[vip-workflow-odin.git] / workflow / odin_fisp.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     <constant name="OdinSeq" type="string" value="odinfispexe" cardinality="scalar" />
20   </interface>
21
22   <processors>
23     <processor name="odin" >
24       <in name="input3" type="string" depth="0" />
25       <in name="input2" type="string" depth="0" />
26       <in name="input1" type="uri" depth="0" />
27       <in name="input0" type="uri" depth="0" />
28       <iterationstrategy>
29         <cross>
30           <port name="input0" />
31           <port name="input1" />
32           <port name="input2" />
33           <port name="input3" />
34         </cross>
35       </iterationstrategy>
36       <gasw descriptor="[GASW_DIR]/odin.xml"/>
37     </processor>
38     <processor name="append-date" >
39       <in name="dir" type="uri" depth="0" />
40       <out name="result" type="string" depth="0" />
41       <beanshell>/*----------Beginning of Beanshell------------*/
42                         import java.text.DateFormat;
43                         import java.text.SimpleDateFormat;
44                         import java.util.Date;
45
46 DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy_HH:mm:ss");
47 String result = dir.toString()+"/"+(dateFormat.format(System.currentTimeMillis()));
48 /*------------End of Beanshell------------*/
49       </beanshell>
50     </processor>
51   </processors>
52
53   <links>
54       <link from="SmpData" to="odin:input1" />
55       <link from="ProData" to="odin:input0" />
56       <link from="ResultsDirectory" to="append-date:dir" />
57       <link from="append-date:result" to="odin:input2" />
58       <link from="OdinSeq" to="odin:input3" />
59   </links>
60
61 </workflow>