public class JavaActionModel
extends com.highdeal.iec.hci.ActionModelImpl
Java class represents a Java action that can be set in a scenario file of an SAP CC Import/Export Connector (IEC) application;
Your customized class can be processed by the IEC application at runtime.
You must develop a Java class that extends the JavaTask abstract class.
During the execution of a scenario, two methods are invoked by the running IEC application:
setProperties(Properties ) to receive the properties of initialization of your Java task;
The properties are those defined in this model.
JavaTask.execute(DataCollection ) to treat the DataCollection specified in argument;
DataCollection contains data (such as ExtendedChargeableItem).
It can access to other features regarding the following implementations:
JavaTaskStateListenerstateTerminated(..) is invoked
when the last action has fully treated the current DataCollectionstateRejected(..) is invoked
when an action rejected the current DataCollection.
The reasons are explained in the argumentsstateFiltered(..) is invoked
when an action filtered the current DataCollection is fully treatedJavaTaskIteratortrue,JavaTaskInitializablesetUp(DataCollection collection) before:
execute method when the Java task is not a JavaTaskIteratortearDown(DataCollection collection) after:
execute method when the Java task is not a JavaTaskIteratorConsult the primary help of the SAP CC Connector Administration Tool (CAT Tool) in the related documentation about how to create and configure a scenario and how to add a Java Action component to this scenario file.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME |
static java.lang.String |
CONTEXT_PROPERTY |
static java.lang.String |
NAME |
static java.lang.String |
PROPERTY |
static java.lang.String |
TYPE |
static java.lang.String |
VALUE |
| Constructor and Description |
|---|
JavaActionModel()
Creation of an instance of this model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(java.lang.String tagName,
com.highdeal.hci.XMLMarshallable child) |
java.lang.String |
getClassName()
Gets the class name of the Java task to perform.
|
java.util.Properties |
getProperties()
Gets the properties to initialize the Java task.
|
boolean |
isValid(int level) |
void |
setAttributes(com.highdeal.hci.XMLAttributes atts) |
void |
setClassName(java.lang.String className)
Sets the class name of the Java task to perform.
|
void |
setNodeContext(java.util.Vector props,
java.util.Vector renamedProps,
java.util.Vector lastPropertyNames,
java.util.Vector deletedProps) |
void |
setProperties(java.util.Properties props)
Sets the properties to initialize the Java task.
|
void |
xmlDescription(com.highdeal.hci.XMLOutputter output) |
addCharacterData, addChild, addContextProperty, contextPropertyRemoved, contextPropertyRenamed, countChildren, getChildAt, getChildren, getContext, getDescription, getMaxChildCount, getName, getNodeContext, getParent, insertChildAt, isNull, marshal, removeChildAt, removeContextProperty, renameContextProperty, setChildAt, setDescription, setMaxChildCount, setName, setParent, toString, toXML, updateContext, updateContext, xmlTagpublic static final java.lang.String PROPERTY
public static final java.lang.String CONTEXT_PROPERTY
public static final java.lang.String TYPE
public static final java.lang.String NAME
public static final java.lang.String VALUE
public static final java.lang.String CLASSNAME
public void setClassName(java.lang.String className)
className - The class name of the Java task to performpublic java.lang.String getClassName()
public void setProperties(java.util.Properties props)
props - The properties to initialize the Java taskpublic java.util.Properties getProperties()
public void setNodeContext(java.util.Vector props,
java.util.Vector renamedProps,
java.util.Vector lastPropertyNames,
java.util.Vector deletedProps)
public boolean isValid(int level)
isValid in interface com.highdeal.iec.hci.ContextualModelisValid in class com.highdeal.iec.hci.ActionModelImpllevel - ContextualModel.SAVE or ContextualModel.USAGE level.public void setAttributes(com.highdeal.hci.XMLAttributes atts)
setAttributes in interface com.highdeal.hci.XMLMarshallablesetAttributes in class com.highdeal.iec.hci.ActionModelImplpublic void addChild(java.lang.String tagName,
com.highdeal.hci.XMLMarshallable child)
addChild in interface com.highdeal.hci.XMLMarshallableaddChild in class com.highdeal.iec.hci.ActionModelImplpublic void xmlDescription(com.highdeal.hci.XMLOutputter output)
xmlDescription in class com.highdeal.iec.hci.ActionModelImpl