Class JavaTask

java.lang.Object
com.highdeal.iec.action.JavaTask
All Implemented Interfaces:
XMLExportable

public abstract class JavaTask extends Object implements XMLExportable
This is an abstract Java class used when customizing the behavior of an SAP CC Import/Export Connector (IEC) application in your system landscape; You develop a Java class that is processed by a running IEC application when executing a scenario that includes a Java Action or a Log Action component.

Implementation in Your IEC Application

To insert your own Java code in the execution of a scenario by a Import/Export Connector (IEC) application, you need to add and set up a Java Action component in the scenario and to develop a customized Java class that extends this abstract class if you want to initialize some properties and to customize the processing of data collections.

Customizing Sequence

Design and develop the following methods depending on your business requirements:

  1. setProperties(Properties) to initialize the JavaTask implementation.
  2. execute(DataCollection) to perform the JavaTask implementation (only if the initialization has not thrown an exception).

You can extend your Java class with the following Java interfaces depending on your business requirements:

Error Handling

You develop the handling of exceptions that can be thrown by the IEC application. Refer to the method details to know which exception you must handle in your Java class (CannotInitializeException, ExecException).

Application Configuration

You must configure a scenario that includes a Java Action component. Set up this component by defining the name of your customized Java class.

Note

Consult the primary help of the CAT Tool user interface for more information about the:

  • Java Action component
  • Scenarios for IEC applications

Your customized jar file must be accessible by the IEC application.

See Also: