com.highdeal.iec.action
Interface JavaTaskInitializable


public interface JavaTaskInitializable

This Java interface provides some new methods invoked before and after the standard execute(..) method of a Java task.

When your customized JavaTask implements this interface:

Note

You cannot extend your Java task with this JavaTaskInitializable interface when it already extends the JavaTaskIterator interface.

See Also:
JavaTask, DataCollection

Method Summary
 void setUp(DataCollection collection)
          Invoked before each JavaTask.execute(DataCollection) invocation.

Note

 void tearDown(DataCollection collection)
          Invoked after each JavaTask.execute(DataCollection) invocation.
Note that, it is not applicable when your JavaTask implements the JavaTaskIterator.
 

Method Detail

setUp

void setUp(DataCollection collection)
           throws ExecException
Invoked before each JavaTask.execute(DataCollection) invocation.

Note

This is not applicable when your Java task implements the JavaTaskIterator interface.

Parameters:
collection - The data collection that contains the parameters that will be passed to the JavaTask.execute(DataCollection)
Throws:
ExecException - is thrown when your conditions of setup are not correct

tearDown

void tearDown(DataCollection collection)
              throws ExecException
Invoked after each JavaTask.execute(DataCollection) invocation.
Note that, it is not applicable when your JavaTask implements the JavaTaskIterator.

Parameters:
collection - The DataCollection contains the parameters passed to the JavaTask.execute(DataCollection)
Throws:
ExecException - is thrown when your conditions of end are not correct

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