I'm writing a controller that allows its contents to execute once every
time an external event happens.  It performs correctly for the first
occurrence, but subsequently only allows n-1 subelements to execute. 
What would cause this?

I've overridden GenericController.next() to: initialize and return null
on first pass; check whether done; check for external event and become
"active"; if active return super.next(); if done with subelements become
inactive.

If inactive, it returns a NullSampler, which is pretty much what it
sounds like.  I found that returning null from next() and not setting
done was a recipe for call stack overflow.

I've examined LoopController and OnlyOnceController; neither seems to
approximate what I'm attempting closely enough.  Perhaps I don't fully
understand the purpose of nextIsNull()?  I looked at IfController, but
that's for a continuous condition, not a one-time event.

Thanks for any assistance.

jp





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to