[untitled]
Created: 2011-06-19 16:16:21
Last updated: 2011-06-19 16:16:50
This is simly a test fortest
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Processors (8)
Name |
Type |
Description |
argument_list |
beanshell |
ScriptList outList = new ArrayList();
outList.add("/home/merdmann/workspace/cicontroler/CIControler/result." + tilt + "/");
outList.add("-name");
outList.add("*.log");
outList.add("-printf");
outList.add("%p,");
|
tilt |
stringconstant |
Value30 |
Get_Directories |
localworker |
Scriptif (command == void || command.equals("")) {
throw new RuntimeException("The 'command' port cannot be null.");
}
Process proc = null;
Runtime rt = Runtime.getRuntime();
String osName = System.getProperty("os.name");
String[] cmdArray = null;
if (osName.equals("Windows NT") || osName.equals("Windows XP")) {
cmdArray = new String[] { "cmd.exe", "/c", command };
} else if (osName.equals("Windows 95")) {
cmdArray = new String[] { "command.exe", "/c", command };
} else {// TODO: investigate if this will work in Linux and OSX
cmdArray = new String[] { command };
}
// concatenate the arrays
if ((args == void) || (args == null)) {
args = new ArrayList();
}
int argSize = cmdArray.length + args.size();
ArrayList appArray = new ArrayList(argSize);
for (int i = 0; i < cmdArray.length; i++) {
appArray.add(cmdArray[i]);
}
for (int i = 0; i < args.size(); i++) {
appArray.add(args.get(i));
}
String[] applist = new String[argSize];
appArray.toArray(applist);
proc = rt.exec(applist);
// Get the input stream and read from it
InputStream in = proc.getInputStream();
int c;
StringBuffer sb = new StringBuffer();
while ((c = in.read()) != -1) {
sb.append((char) c);
}
in.close();
result = sb.toString();
|
find_command |
stringconstant |
Valuefind |
SpreadsheetImport |
spreadsheet |
|
String_To_List |
localworker |
ScriptList split = new ArrayList();
if (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
for (int i = 0; i < result.length; i++) {
split.add(result[i]);
}
}
|
Write_Text_File |
localworker |
ScriptBufferedWriter out = new BufferedWriter(new FileWriter(outputFile));
out.write(filecontents);
out.close();
outputFile = filecontents;
|
outputFile_value |
stringconstant |
Value/data/result.txt |
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
argument_list |
|
tilt
|
outList
|
Outputs (1)
Name |
Description |
Data_File |
|
Datalinks (8)
Source |
Sink |
tilt:value |
argument_list:tilt |
find_command:value |
Get_Directories:command |
argument_list:outList |
Get_Directories:args |
String_To_List:split |
SpreadsheetImport:fileurl |
Get_Directories:result |
String_To_List:string |
SpreadsheetImport:output |
Write_Text_File:filecontents |
outputFile_value:value |
Write_Text_File:outputFile |
Write_Text_File:outputFile |
Data_File |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment