public class MosProcessImpl extends MosProcess implements MicConstants
INTEGRATIONLOGGERACTION, ACTION_EJB_LOCAL_REF_KEY, ACTION_EJB_REF_KEY, ACTIONADD, ACTIONADDUPDATE, ACTIONDELETE, ACTIONREPLACE, ACTIONUPDATE, ADD, APPEXPORT, AXISDIR, BYPASS, COMMA_CHAR, COMPLETE, DATATYPE, DELETED, EJB_JNDI_KEY, ENABLEPOLLING, ENTERPRISE_EJB_LOCAL_REF_KEY, ENTERPRISE_EJB_REF_KEY, ERREXTRACT, ERROR, ERRORED, ERRORMESSAGETAG, ERTAG, EXCLUDE, EXTRACT, FILEDIR, FILEEXTENSION, FILENAME, FLAT_DATA, FLAT_ROW, FLATFILESEP, FLATFILETYPE, IFACEDRIVER, IFACEEPDESC, IFACEISREMOTE, IFACEPASSWORD, IFACETABLE, IFACEURL, IFACEUSERNAME, INCLUDE, INTEGRATION_LOGGER, IRTAG, ISCONTINUOUS, JMSRECOVERYDIR, JMSRECOVERYMSGDATAELEMENT, JMSRECOVERYMSGPROPELEMENT, JMSRECOVERYTOPELEMENT, JSONFILETYPE, LOADFLAT, LOADXML, LONGDESCRIPTIONCOLNAME, MAX_AUTH_HEADER, MAX_POST_SIZE, MAXIMO_TYPE, MEA_PROCESS_FLAG, MEAAPPNAME, MESSAGE_DESTINATION, MESSAGE_INTERFACE, MESSAGE_INTERFACE_TABLE, MESSAGE_INTERFACE_TYPE, MESSAGE_OS_NAME, MESSAGE_POLL_TABLE, MESSAGE_SENDER, MOS_EJB_LOCAL_REF_KEY, MOS_EJB_REF_KEY, MSG_ERR_MSG, MSG_KEY_VAL, MSG_OP_MODE, MSG_OPERATION, MSG_STATUS, MSG_TRK_ENABLED, MSG_TRK_EXTSYS, MSG_TRK_STORE_MSG, MXJMS, NONPERSISTENT, NONRESTRICTSETTING, NULL, POLLINGFREQUENCY, PROCESS, PROCESSED, QUEUE_NAME, QUEUECONTEXT, RECEIVED, REJECTED, RESTRICTSETTING, RESTRICTSTRUCTURE, ROOT_NODE, ROUTER_JNDI_NAME, SEARCH_FIELD_VAL, SKIP, SKIPMBO, sNo, sYes, TENANTID, TEXTQUALIFIER, TOPTAGFORERR, TOTAL_GL_COMPS_ALLOWED, TRANSIDSEQ, TXNDATA, UPDATE, USER, USERCOLUMN, VIEW, XML_DATA, XMLFILETYPE, XMLTYPEACTION, ACTIONADD, ACTIONADDUPDATE, ACTIONDELETE, ACTIONREPLACE, ACTIONUPDATE, ADAPTER_INSTALL, ADD, ADDATEND, BASELANGUAGE, BYPASS, COMPANYSETID_NAME, COMPLETE, CONFIGFILENAME, CREATIONDATETIME, DELETEFORINSERT, DEPLOYMENT_MANAGER, ENTERPRISE_SERVICE, ERRORTAG, ESCAPECHAR, EVENT, FILTERMBOKEY, INVOKE_CHANNEL, ITEMSETID_NAME, MAXIMO_NS_PREFIX, MAXIMOVERSION, MESSAGEID, MESSAGETYPE_CREATE, MESSAGETYPE_DELETE, MESSAGETYPE_INITIATE, MESSAGETYPE_INVOKE, MESSAGETYPE_MERGE, MESSAGETYPE_PATCH, MESSAGETYPE_PROCESS, MESSAGETYPE_PUBLISH, MESSAGETYPE_QUERY, MESSAGETYPE_RESPONSE, MESSAGETYPE_SYNC, MESSAGETYPE_UPDATE, MESSAGETYPE_WAKEUP, OBJECT_STRUCTURE_SERVICE, ORGID_NAME, OVERRIDEALWAYS, OVERRIDENULLONLY, PROCESS, SITEID_NAME, SKIP, SKIPMBO, SKIPMBOKEY, STANDARD_SERVICE, TRANSLANGUAGE, UPDATE, XSI_NS, XSI_NS_PREFIX| Constructor and Description |
|---|
MosProcessImpl()
Construct the set
|
| Modifier and Type | Method and Description |
|---|---|
MboRemote |
addMbo(MboSetRemote mboSet)
Default method to call back and add Mbo's in MboSet
|
void |
afterProcess()
Called after processing while XML
(can be called to change status in the hierarchy)
|
void |
afterReplace(MboRemote child)
Called for action Replace or null scenario after processing while XML
to delete data which did not come in XML
|
void |
checkAdditionalRules()
Default method to call at the end of processing can be used to set data
for the whole object.
|
int |
checkBusinessRules()
Default method to call back and find out can we process data.
|
int |
checkBusinessRules(MboSetRemote mboSet,
java.lang.String tableName)
Default method to call back and find out can we process data.
|
void |
checkDocumnetMaxSize(byte[] document)
Checks size of the attachment against system property "mxe.int.doclink.maxfilesize"
|
boolean |
checkForUpdate()
Default method to call and change for status update.
|
void |
checkValidateErrors()
Default method to check all validation errors
|
void |
cleanup()
Default method to call at the end of processing to cleanup all private variable
create during the process of the noun.
|
boolean |
compareMboKeyValues(MboSetRemote mboSet,
MicSetInfo micInfo,
java.lang.String[] keys)
Deprecated.
please use method with MosDetailInfo
|
boolean |
compareMboKeyValues(MboSetRemote mboSet,
MosDetailInfo mdi,
java.lang.String[] keys)
Default method to try to find in memory MBO with the keys matched with
XML data for the current level
|
void |
copyParentKey(java.lang.String attributeName,
java.lang.String value)
Copy parent key to a child if value does not exists in the child
|
MboSetRemote |
createMboSet(boolean isPrimaryMbo,
MboRemote parentMbo,
MicSetInfo micInfo,
java.lang.String processTable)
Deprecated.
please use method with MosDetailInfo
|
MboSetRemote |
createMboSet(boolean isPrimaryMbo,
MboRemote parentMbo,
MosDetailInfo mdi,
java.lang.String processTable)
Create Mbo set sets for all levels in XML for incoming transactions
|
void |
delete(MboRemote mbo,
MosDetailInfo mdi)
Update row in MAXIMO table for the main table
|
void |
deleteAll(MboRemote owner,
MboSetRemote mboSet)
Default method to call back delete all Mbo's in MboSet
|
MboRemote |
findTargetMbo(MosDetailInfo mdi)
Find target Mbo in MboSet for Invacation Channel.
|
long |
getAccessModifier()
Return Access modifier.
|
java.lang.String |
getAttachmentFileName(java.lang.String directory,
java.lang.String fileName)
Create unique file name for attachment.
|
java.lang.String |
getCompanySet()
Default method to get name of the field which has value for company set.
|
java.lang.String |
getItemSet()
Default method to get name of the field which has value for item set.
|
java.lang.String |
getLanguage()
This method will return Language of the transaction
|
java.lang.String |
getOrg()
Default method to get name of the field which has value for organization
|
java.lang.String |
getSite()
Default method to get name of the field which has value for site
|
boolean |
isBranchFilterOn() |
boolean |
isEsigVerified() |
int |
presetMboRules()
Default method to call back and find out do we need to set data.
|
byte[] |
processExternalData(StructureData data,
java.lang.String mosName,
UserInfo info,
MXTransaction trans)
Process data coming from external systems using Enterprise Service definition.
|
MboSetRemote |
processMboSet(boolean isPrimaryMbo,
MboRemote parentMbo,
MosDetailInfo mdi,
java.lang.String processTable)
Create Mbo set sets for all levels in XML for incoming transactions
If MboSet already exit (Invocation Channel) use it.
|
byte[] |
processObjectStructureService(StructureData data,
java.lang.String mosName,
java.lang.String msgType,
UserInfo info,
MXTransaction trans)
Process Object Structure Service XML.
|
MboSetRemote |
resetMboSet(MboSetRemote childMboSet)
Default method to be overridden by the individual modules to reset MboSet
to be processed.
|
void |
save()
Default method to call back and save transaction
|
void |
setAccessModifier(long amd)
Sets Access modifier.
|
void |
setAdditionalData(MboSetRemote MboSet,
java.lang.String tableName)
Default method to set all addition data from XML to MBO which was not set
thru Integration DD
|
void |
setAttachments()
Set fields for attachment processing.
|
void |
setAutokeyFlag(MboSetRemote set,
MosDetailInfo info)
Default method to be overridden by the individual modules to set autokey flag.
|
void |
setEsigVerified() |
void |
setSkipSetFields(java.lang.String field)
Sets Access modifier.
|
void |
setValidOrgSite(boolean v)
Method to set a swith after org and site is validated.
|
void |
verifyEsig() |
void |
writeAttachments()
Called after processing to write all attachments to the file
|
getDBName, getInterDD, getJsonRequest, getKeyArray, getKeyArray, getMosName, getPrimaryMbo, getTransaction, getTransactionAction, getUserInfo, hasInvokedScript, hasScript, isMaxVarEQ, isValueEQ, setJsonRequest, setMosName, setOSName, setOSPrimaryMbo, setUserInfopublic MosProcessImpl()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic byte[] processObjectStructureService(StructureData data, java.lang.String mosName, java.lang.String msgType, UserInfo info, MXTransaction trans) throws MXException, java.rmi.RemoteException
data - Give reference to StructureData class with data from external
system.mosName - Give object structure name.msgType - Give operation.info - Give User Info reference.trans - Give reference to MAXIMO Transaction object.MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic byte[] processExternalData(StructureData data, java.lang.String mosName, UserInfo info, MXTransaction trans) throws MXException, java.rmi.RemoteException
data - Give reference to StructureData class with data from external
system.mosName - Give object structure name.info - Give User Info reference.trans - Give reference to MAXIMO Transaction object.MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic MboSetRemote processMboSet(boolean isPrimaryMbo, MboRemote parentMbo, MosDetailInfo mdi, java.lang.String processTable) throws MXException, java.rmi.RemoteException
isPrimaryMbo - Give indicator for Main vs. additional tablesparentMbo - Give reference to parent Mbo.mdi - Give MosDetailInfo for the current level.processTable - Give name of table to processMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic MboSetRemote createMboSet(boolean isPrimaryMbo, MboRemote parentMbo, MicSetInfo micInfo, java.lang.String processTable) throws MXException, java.rmi.RemoteException
isPrimaryMbo - Give boolean to specify is it primary table or additional
tableparentMbo - Give reference to parent Mbo.micInfo - Give MicSetInfo for the current level.processTable - Give name of table to processMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void copyParentKey(java.lang.String attributeName,
java.lang.String value)
throws MXException,
java.rmi.RemoteException
attributeName - attribute name in childval - value from parent mbo to setMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic MboSetRemote createMboSet(boolean isPrimaryMbo, MboRemote parentMbo, MosDetailInfo mdi, java.lang.String processTable) throws MXException, java.rmi.RemoteException
isPrimaryMbo - Give boolean to specify is it primary table or additional
tableparentMbo - Give reference to parent Mbo.mdi - Give MicSetInfo for the current level.processTable - Give name of table to processMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void delete(MboRemote mbo, MosDetailInfo mdi) throws MXException, java.rmi.RemoteException
mbo - Give Mbo for the current level.mdi - Give MosDetailInfo for the current level.MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void checkValidateErrors()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic boolean isEsigVerified()
public void setEsigVerified()
public void verifyEsig()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic boolean compareMboKeyValues(MboSetRemote mboSet, MicSetInfo micInfo, java.lang.String[] keys) throws MXException, java.rmi.RemoteException
mboSet - Give reverence to current MboSetmicInfo - The integration object infokeys - Keys of the objectMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic boolean compareMboKeyValues(MboSetRemote mboSet, MosDetailInfo mdi, java.lang.String[] keys) throws MXException, java.rmi.RemoteException
mboSet - Give reverence to current MboSetmdi - Give MosDetailInfo for the current level.keys - Keys of the objectMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void deleteAll(MboRemote owner, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
owner - Give reference to parent Mbo.mboSet - Give MboSet for the current level.MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic MboRemote addMbo(MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
mboSet - Give MboSet for the current level.MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void save()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void checkAdditionalRules()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void cleanup()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic boolean checkForUpdate()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic MboSetRemote resetMboSet(MboSetRemote childMboSet) throws MXException, java.rmi.RemoteException
childMboSet - Give reverence to current MboSetMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic java.lang.String getLanguage()
throws MXException
MXExceptionpublic int checkBusinessRules()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic int presetMboRules()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic int checkBusinessRules(MboSetRemote mboSet, java.lang.String tableName) throws MXException, java.rmi.RemoteException
mboSet - Give MboSet for the current level.tableName - Give of the table to process.MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void setAdditionalData(MboSetRemote MboSet, java.lang.String tableName) throws MXException, java.rmi.RemoteException
MboSet - Give MboSet for the current level.tableName - Give name of process MAXIMO tableMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void setAttachments()
throws MXException,
java.rmi.RemoteException
MXException - Maximo Exceptionjava.rmi.RemoteException - Remote Exceptionpublic void checkDocumnetMaxSize(byte[] document)
throws MXException,
java.rmi.RemoteException
document - Attachment byte array.MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic java.lang.String getAttachmentFileName(java.lang.String directory,
java.lang.String fileName)
throws MXException,
java.rmi.RemoteException
directory - Give attachment directory name.fileName - Give original file nameMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void setAutokeyFlag(MboSetRemote set, MosDetailInfo info) throws MXException, java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic java.lang.String getOrg()
public java.lang.String getSite()
public java.lang.String getItemSet()
public java.lang.String getCompanySet()
public long getAccessModifier()
public void setAccessModifier(long amd)
amd - Give Access modifier.public void setSkipSetFields(java.lang.String field)
amd - Give Access modifier.public void setValidOrgSite(boolean v)
v - Give validate org and site swith.public MboRemote findTargetMbo(MosDetailInfo mdi) throws MXException, java.rmi.RemoteException
mdi - Give MosDetailInfo referenceMXExceptionjava.rmi.RemoteExceptionpublic void afterProcess()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void writeAttachments()
throws MXException,
java.rmi.RemoteException
MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void afterReplace(MboRemote child) throws MXException, java.rmi.RemoteException
child - Give Mbo for the current level.MXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic boolean isBranchFilterOn()