Local JAR execution.
Created: 2015-10-14 23:17:03
Last updated: 2015-10-14 23:21:09
No description has been set
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (3)
Name |
Description |
jobs |
|
maior |
|
menor |
|
Processors (4)
Name |
Type |
Description |
Beanshell |
beanshell |
Scriptimport java.util.Random;
import java.util.Calendar;
Random r = new Random();
List lista = new ArrayList();
int soma = 0;
int aux = 0;
int soma_segundos = 0;
Calendar c = Calendar.getInstance();
for(int i = 0; i < Integer.parseInt(jobs); i++){
aux = r.nextInt(Integer.parseInt(maior) - Integer.parseInt(menor)) + Integer.parseInt(menor);
soma = soma + aux;
lista.add(aux);
}
soma_segundos = c.get(Calendar.HOUR_OF_DAY)*60*60 + c.get(Calendar.MINUTE)*60 + c.get(Calendar.SECOND); |
Calc_Time |
beanshell |
Scriptimport java.util.Calendar;
Calendar c = Calendar.getInstance();
int soma2 = c.get(Calendar.HOUR_OF_DAY)*60*60 + c.get(Calendar.MINUTE)*60 + c.get(Calendar.SECOND);
duration = soma2 - Integer.parseInt(soma_segundos); |
Execute_jar |
externaltool |
|
jar_path |
stringconstant |
Value/home/igorsr/Dropbox/Mestrado/2015_3/escience/Taverna/workflows/sleep_e.jar |
Beanshells (2)
Name |
Description |
Inputs |
Outputs |
Beanshell |
|
maior
menor
jobs
|
lista
soma
soma_segundos
|
Calc_Time |
|
soma_segundos
|
duration
|
Outputs (5)
Name |
Description |
list |
|
sum |
|
duration |
|
STDERR |
|
STDOUT |
|
Datalinks (11)
Source |
Sink |
jobs |
Beanshell:jobs |
maior |
Beanshell:maior |
menor |
Beanshell:menor |
Beanshell:soma_segundos |
Calc_Time:soma_segundos |
Beanshell:lista |
Execute_jar:tempo |
jar_path:value |
Execute_jar:jar_path |
Beanshell:lista |
list |
Beanshell:soma |
sum |
Calc_Time:duration |
duration |
Execute_jar:STDERR |
STDERR |
Execute_jar:STDOUT |
STDOUT |
Coordinations (1)
Controller |
Target |
Execute_jar |
Calc_Time |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1 (earliest)
(of 2)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (2)
-
Private pack
-
Private pack
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 (1)
Log in to make a comment
The JAR file used here can be found at http://www.myexperiment.org/files/1409/versions/1.