[kepler-users] Sequence to Array problem

Tomasz Żok tzok at man.poznan.pl
Wed Jan 20 00:57:50 PST 2010


Hi,

I have recently found a strange behaviour of Sequence to Array actor. There 
seems to be some bug, which leads this actor not to send any output in certain 
situations.

To reproduce the bug:
1. Choose DDF director.
2. Send n tokens to "input" port, and then value n to "arrayLength" port. 
Everything works fine, you can restart the workflow many many times and it works 
great.
3. But now, send all but last token to "input" port and value n-1 to 
"arrayLength" port. It should output an array of n-1 elements, but it outputs 
nothing.

Generally speaking, once the workflow with Sequence to Array is run, changing 
"arrayLength" without restarting whole instance of Kepler, leads this actor 
not to output anything. Workflow silently goes into "execution finished" state.

I tested this on both Kepler-1.0.0 and on the newest snapshot from SVN.


There is however a workaround for this problem. One needs to add a parameter, 
then set it to value n-1 and in the configuration dialog of Sequence to Array, 
choose this parameter's name as arrayLength. It works, but it is not the best 
solution as it requires additional actors and some synchronization, because 
parameter's value needs to be set before Sequence to Array fires.

So I'd rather specify arrayLength in the flow of execution, just as an integer 
sent to arrayLength port, but currently it is impossible.

Best regards,
Tomek

-- 
Tomasz Zok
Poznan Supercomputing and Networking Center
ul. Noskowskiego 10, 61-704 Poznan, POLAND
http://www.man.poznan.pl



More information about the Kepler-users mailing list