]> Creatis software - vip-workflow-odin.git/blob - workflow/odin_fisp.gwendia
SMP folder selection
[vip-workflow-odin.git] / workflow / odin_fisp.gwendia
1 <?xml version="1.0" encoding="UTF-8"?>
2 <workflow name="odin" version="0.2">
3
4   <description>This application wraps the Odin MRI simulator. The Odin code source is available at http://od1n.sourceforge.net</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     <source name="options" type="string">
21       <source-comment>&lt;b&gt;&lt;font color="blue"&gt;options&lt;/font&gt;&lt;/b&gt;: any option string, to be appended to the recon-all command line. For instance: '-all'. &lt;b&gt;Important:&lt;/b&gt; don't put spaces, use '_'  instead. And put 'no' in case you don't want to use any option.
22       </source-comment>
23     </source>
24   </interface>
25
26   <processors>
27     <processor name="odin" >
28       <in name="input4" type="string" depth="0" />
29       <in name="input3" type="string" depth="0" />
30       <in name="input2" type="string" depth="0" />
31       <in name="input1" type="uri" depth="0" />
32       <in name="input0" type="uri" depth="0" />
33       <iterationstrategy>
34         <cross>
35           <port name="input0" />
36           <port name="input1" />
37           <port name="input2" />
38           <port name="input3" />
39           <port name="input4" />
40         </cross>
41       </iterationstrategy>
42       <gasw descriptor="[GASW_DIR]/odin.xml"/>
43     </processor>
44     <processor name="append-date" >
45       <in name="dir" type="uri" depth="0" />
46       <out name="result" type="string" depth="0" />
47       <beanshell>/*----------Beginning of Beanshell------------*/
48                         import java.text.DateFormat;
49                         import java.text.SimpleDateFormat;
50                         import java.util.Date;
51
52 DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy_HH:mm:ss");
53 String result = dir.toString()+"/"+(dateFormat.format(System.currentTimeMillis()));
54 /*------------End of Beanshell------------*/
55       </beanshell>
56     </processor>
57   </processors>
58
59   <links>
60       <link from="SmpData" to="odin:input1" />
61       <link from="ProData" to="odin:input0" />
62       <link from="ResultsDirectory" to="append-date:dir" />
63       <link from="append-date:result" to="odin:input2" />
64       <link from="OdinSeq" to="odin:input3" />
65       <link from="options" to="odin:input4" />
66   </links>
67
68 </workflow>