[kepler-users] Using variables

Madhusudan Gujral madhu at sdsc.edu
Fri May 28 12:44:17 PDT 2010


Hi Trisha,

  You will need to use the Expression actor for the

 boolean greaterThanFive;
if(x==5)
greaterThanFive = true;

I do not know if you plan to use else condition as well. 

Here is a sample workflow that i wrote for a demo, which does something very similar to you requirement. Please have a look at it. 

Thanks
--Madhu
________________________________________
From: kepler-users-bounces at kepler-project.org [kepler-users-bounces at kepler-project.org] On Behalf Of Taleena R Sines [trsines0 at frostburg.edu]
Sent: Friday, May 28, 2010 12:13 PM
To: kepler-users at kepler-project.org
Subject: [kepler-users] Using variables

I am trying to convert a java-like code into a kepler workflow

if I have something like:
int x = 5;
boolean greaterThanFive;
if(x==5)
greaterThanFive = true;

what actors/set-up would I need?
Thank you



TR


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Example_1.xml
Type: text/xml
Size: 49155 bytes
Desc: Example_1.xml
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20100528/176bb0c0/attachment.xml>


More information about the Kepler-users mailing list