[kepler-users] stopping workflow,
[BE] Ufuk Utku Turuncoglu
turuncu at be.itu.edu.tr
Thu Dec 27 03:40:34 PST 2007
hi,
i try to construct simple workflow which has two custom actor. the first
one reads data (actor1) and send to other one (actor2) to create an
file. so, actor1 sends data in each time step sperately. The problem is,
when i use the sdf actor with iterations parameter as 0, the workflow is
not stop and do same work again and again. if i try to set iteration
parameter as 1, the actor1 only reads first time step data and stops.
so, i need to get some suggestions. how can i stop workflow when the
actor1 complates its work (reads all time step data)? is it neccecary to
trigger stop actor from actor2 after finishing their job? i think, i
check the port using hasToken method in actor2 and if it has not any
token i could send a trigger message to stop actor. The part of the code
for each actor as follows,
actor1 sends data as,
for (int i=0; i <data.lenght(); i++) {
variable.send(0, new ObjectToken(ncf));
}
actor2 gets data as,
if (data.hasToken(0)) {
ObjectToken obj = (ObjectToken) data.get();
}
Any suggestion will be helpful,
happy christmas
--ufuk
More information about the Kepler-users
mailing list