com.highdeal.iec.action
Interface JavaTaskIterator


public interface JavaTaskIterator

When your customized JavaTask implements this interface, it makes loop on the hasNext(DataCollection) method.

While the invocation of the method hasNext(DataCollection) returns true, the JavaTask.execute(DataCollection) is invoked with the same data collection.

Note

You cannot extend your customized Java task with both this JavaTaskIterator interface and the JavaTaskInitializable interface.

See Also:
JavaTask, DataCollection

Method Summary
 boolean hasNext(DataCollection collection)
          Returns true to invoke the JavaTask.execute(DataCollection) and false otherwise.
 

Method Detail

hasNext

boolean hasNext(DataCollection collection)
                throws ExecException
Returns true to invoke the JavaTask.execute(DataCollection) and false otherwise.

Parameters:
collection - The data collection that contains the parameters passed to the JavaTask.execute(DataCollection)
Returns:
true to invoke the JavaTask.execute(DataCollection) and false otherwise.
Throws:
ExecException - is thrown when your conditions of end are not correct

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)