|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.iec.hci.ActionModelImpl
com.highdeal.iec.hci.JavaActionModel
public class JavaActionModel
This 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 online 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.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class com.highdeal.iec.hci.ActionModelImpl |
|---|
ACTION_XMLTAG, children, DESCRIPTION_XMLATTR, EMPTYCHILD_XMLTAG, TYPE_XMLATTR, UID_XMLATTR |
| Fields inherited from interface com.highdeal.iec.hci.ContextualModel |
|---|
SAVE, USAGE |
| Constructor Summary | |
|---|---|
JavaActionModel()
Creation of an instance of this model. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.highdeal.iec.hci.ActionModelImpl |
|---|
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, xmlTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public JavaActionModel()
| Method Detail |
|---|
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.ActionModelImplpublic void setAttributes(com.highdeal.hci.XMLAttributes atts)
setAttributes in interface com.highdeal.hci.XMLMarshallablesetAttributes in class com.highdeal.iec.hci.ActionModelImpl
public 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
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||