String list union - yielding non-empty list
Created: 2010-10-29 16:28:07
The string list union service takes in ['a','b','c'] and ['a','e','c'] and returns a list equivalent to ['a','b','c','e'].
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
|  |
Titles (3)
|  |
String list union - yielding non-empty list |
String list union - yielding non-empty list |
String list union - yielding non-empty list |
Descriptions (1)
|  |
The string list union service takes in ['a','b','c'] and ['a','e','c'] and returns a list equivalent to ['a','b','c','e']. |
Dependencies (0)
|  |
Inputs (0)
|  |
Processors (5)
|  |
Name |
Type |
Description |
list1 |
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]);
}
}
|
list2 |
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]);
}
}
|
String_list_union |
localworker |
ScriptSet results = new HashSet();
results.addAll(list1);
results.addAll(list2);
List union = new ArrayList();
union.addAll(results);
|
a_string_list |
stringconstant |
Valuea,b,c |
another_string_list |
stringconstant |
Valuea,c,e |
Beanshells (0)
|  |
Outputs (1)
|  |
Datalinks (5)
|  |
Source |
Sink |
a_string_list:value |
list1:string |
another_string_list:value |
list2:string |
list2:split |
String_list_union:list2 |
list1:split |
String_list_union:list1 |
String_list_union:union |
union |
Coordinations (0)
|  |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (0)
(People/Groups)
None
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
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
Citations (0)Version History
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
No comments yet
Log in to make a comment