public class ScriptEngineContext extends java.lang.Object implements ScriptConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERRLOG |
static java.lang.String |
OUTLOG |
ALN, ALP_MTD_LIST, ALP_MVA_ACTION, ALP_MVA_INIT, ALP_MVA_INITRESTRICTION, ALP_MVA_LIST, ALP_MVA_VALIDATE, ATTRFLAG_HIDDEN, ATTRFLAG_INITIAL, ATTRFLAG_INTERNAL, ATTRFLAG_MODIFIED, ATTRFLAG_PREVIOUS, ATTRFLAG_READONLY, ATTRFLAG_REQUIRED, DATETIME, DECIMAL, DRIVER_PROP_NAME, EVENTPOINT_POSTCOMMIT, EVENTPOINT_POSTSAVE, EVENTPOINT_PRESAVE, FLOAT, HIDDEN, IN, INITIAL, INOUT, INTEGER, INTERNAL, INVOKE_ARGS, INVOKE_FUNCTION, INVOKE_RESPONSE, INVOKE_STATUS, LP_ACTION, LP_CONDITION, LP_FIELD, LP_OBJECT, MBOATTR_PARAM, MODIFIED, OE_ADD, OE_ADD_POSTCOMMIT, OE_ADD_POSTSAVE, OE_APPVALIDATE, OE_CANADD, OE_CANDELETE, OE_DELETE, OE_DELETE_POSTCOMMIT, OE_DELETE_POSTSAVE, OE_INIT, OE_UPDATE, OE_UPDATE_POSTCOMMIT, OE_UPDATE_POSTSAVE, OUT, PARENT_SCRIPT, PREVIOUS, READONLY, REQUIRED, SCRIPT_LOGGER_KEY, SMALLINT, VAR_ACTION_SCRIPTHOME, VAR_ACTIONNAME, VAR_APP, VAR_CALL_BASE_VALIDATE, VAR_CONNECTION, VAR_DOMAIN_ERR_GRP, VAR_DOMAIN_ERR_KEY, VAR_DOMAINID, VAR_ERRORGROUP, VAR_ERRORKEY, VAR_EVALRESULT, VAR_EVENT_FILTER, VAR_EXIT_BEFOREEXTEXIT, VAR_EXIT_ERDATA, VAR_EXIT_EXTSYSTEM, VAR_EXIT_IFACENAME, VAR_EXIT_IFACETYPE, VAR_EXIT_IRDATA, VAR_EXIT_MESSAGETYPE, VAR_EXIT_OSNAME, VAR_INTERACTIVE, VAR_LAUNCHPOINT, VAR_LIST_MBOSET, VAR_LIST_ORDER_BY, VAR_LIST_WHERE, VAR_LOOKUP_KEY_SRC, VAR_LOOKUP_KEY_TARGET, VAR_MBO, VAR_MBONAME, VAR_MBOSET, VAR_MBOVALUE, VAR_ONADD, VAR_ONDELETE, VAR_ONUPDATE, VAR_PARAMS, VAR_RELATION_OBJ, VAR_RELATION_WHERE, VAR_SCRIPTNAME, VAR_SERVICE, VAR_THISVALUE, VAR_USER, VAR_USERINFO, VAR_WARNGROUP, VAR_WARNKEY, VAR_WARNPARAMS, VAR_WFINSTANCE, VARTYPE_LITERAL, VARTYPE_MAXATTR, VARTYPE_MAXPROP, VARTYPE_MAXVAR, YORN
Modifier and Type | Method and Description |
---|---|
static ScriptEngineContext |
createCurrentContext()
Creates ScriptEngineContext if its not there and returns it
if no ScriptEngineContext is assocoated with the current thread.
|
static void |
destroyCurrentContext() |
static ScriptEngineContext |
getCurrentContext()
Returns Integration Context
|
java.util.Date |
getDateProperty(java.lang.String propName)
Return proprty value for specified property as Date
|
java.lang.Double |
getDoubleProperty(java.lang.String propName)
Return proprty value for specified property as Double
|
java.lang.Integer |
getIntegerProperty(java.lang.String propName)
Return proprty value for specified property as Integer
|
java.lang.Long |
getLongProperty(java.lang.String propName)
Return proprty value for specified property as Long
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
returns Map of all context properties.
|
java.lang.Object |
getProperty(java.lang.String propName)
Return proprty value for specified property
|
java.lang.String |
getStringProperty(java.lang.String propName)
Return proprty value for specified property as string
|
void |
removeProperty(java.lang.String propName)
Removes property
propName . |
void |
setDoubleProperty(java.lang.String propName,
double val)
Sets property with double value
|
void |
setIntegerProperty(java.lang.String propName,
int val)
Sets property with integer value
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> data)
Sets properties from the list
|
void |
setProperty(java.lang.String propName,
java.lang.Object value)
Sets property with any value
|
public static java.lang.String ERRLOG
public static java.lang.String OUTLOG
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.Object getProperty(java.lang.String propName)
propName
- property namepublic java.lang.String getStringProperty(java.lang.String propName)
propName
- property namepublic java.lang.Integer getIntegerProperty(java.lang.String propName)
propName
- property namepublic java.lang.Long getLongProperty(java.lang.String propName)
propName
- property namepublic void setIntegerProperty(java.lang.String propName, int val)
propName
- property nameval
- the integer value of the propertypublic void setDoubleProperty(java.lang.String propName, double val)
propName
- property nameval
- property valuepublic java.lang.Double getDoubleProperty(java.lang.String propName)
propName
- property namepublic java.util.Date getDateProperty(java.lang.String propName)
propName
- property namepublic void setProperty(java.lang.String propName, java.lang.Object value)
propName
- property namevalue
- property valuepublic void removeProperty(java.lang.String propName)
propName
.propName
- name of the property.public void setProperties(java.util.Map<java.lang.String,java.lang.Object> data)
data
- set of properties for the context.public static ScriptEngineContext getCurrentContext()
public static ScriptEngineContext createCurrentContext()
public static void destroyCurrentContext()