|
SAP CC 3.0 IEC API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.iec.action.JavaTask
public abstract class JavaTask
This is an abstract class.
To insert your own Java code in the execution of a Scenario by a Connector program,
you need to add a JavaActionModel which the classname attribute
is the name of a class that implements this abstract class.
By this way, the performing invoke:
setProperties(Properties) to initialize the JavaTask implementation.execute(DataCollection) to perform the JavaTask implementation (only if the initialization has not thrown an exception.)
| Constructor Summary | |
|---|---|
JavaTask()
|
|
| Method Summary | |
|---|---|
abstract DataCollection |
execute(DataCollection collection)
This method represents the perform of this JavaTask using the DataCollection as parameters.The parameters from the parent nodes are in the DataCollection.When the DataCollection is modified (most of the time, this JavaTask add properties in the DataCollection), it must be returned.When an error occurred in this method, it has to be wrapped by a ExecException. |
void |
initialize(com.highdeal.hci.XMLMarshallable model)
Initializes the from the model. |
abstract void |
setProperties(java.util.Properties props)
Initialize the JavaTask with Properties.The Properties are build from the property XML nodes of the JavaActionModel.When the initialization can't be done (a property is missing for instance or has a bad value, etc...), a CannotInitializeException can be thrown. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaTask()
| Method Detail |
|---|
public abstract DataCollection execute(DataCollection collection)
throws ExecException
JavaTask using the DataCollection as parameters.DataCollection.DataCollection is modified (most of the time, this JavaTask add properties in the DataCollection), it must be returned.ExecException.
collection - the DataCollection contains the parameters of execution.
DataCollection modified if it does.
ExecException
public abstract void setProperties(java.util.Properties props)
throws CannotInitializeException
JavaTask with Properties.Properties are build from the property XML nodes of the JavaActionModel.CannotInitializeException can be thrown.
props - the properties
CannotInitializeException - the exception is thrown when something from the Properties isn't expected.
public final void initialize(com.highdeal.hci.XMLMarshallable model)
throws CannotInitializeException
XMLExportable
initialize in interface XMLExportablemodel - the model used for initializing
CannotInitializeException
|
SAP CC 3.0 IEC API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||