public class MosProcessImpl extends MosProcess implements MicConstants
Modifier and Type | Field and Description |
---|---|
protected long |
accessModifier
Access Modifier
|
protected int |
action |
protected java.lang.String |
actionInd
Action Indicator of transaction
|
protected java.io.ByteArrayOutputStream |
byteOutputStream |
protected java.lang.String |
messageType
Integration Service messageType
|
protected java.util.Map |
metaData
MetaData for Invoke Channel
|
protected java.lang.String |
processTable
Action Indicator of transaction
|
protected boolean |
replyRequired
Is reply required for Integration Service
|
protected java.util.List |
responseMbos
Hold all response Mbos
|
protected boolean |
selfRef |
protected StructureData |
struc
Structure Data class of all data from External System
|
protected MboRemote |
targetMbo
Target Mbo for Invoke Channel
|
protected java.util.Map |
targetMbos
Haold all target Mbo for target MboSet
|
protected MboSetRemote |
targetMboSet
Target MboSet for Invoke Channel
|
protected boolean |
toBeSaved |
protected java.util.ArrayList |
updatedSet
List of all the Mbo Sets updated in the transaction
|
protected boolean |
validOrgSite
Boolean to check if org and site has been validated
|
protected javax.xml.stream.XMLStreamWriter |
writer |
apiContext, dbName, hr, INTEGRATIONLOGGER, interDD, mbo, mdi, micsetrel, mosInfo, mosName, mxServer, mxTrans, primaryMbo, primaryMboName, primaryMboSet, scriptName, userInfo
ACTION, 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, XMLTYPE
ACTION, 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
|
protected void |
applyDMRules(StructureData data,
UserInfo info)
Default method to apply XML rules.
|
protected int |
applyMboRules(MboRemote ruleMbo,
java.lang.String hpath)
Default method to apply Mbo rules.
|
protected void |
applyXMLRules()
Default method to apply XML rules.
|
protected void |
buildResponse(MboRemote mbo,
int itr,
int size)
Build Invocation response
|
protected void |
buildResponseEnd()
Build Invocation response
|
protected void |
callMboExit()
Default method to cal Mbo User Exit
|
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"
|
protected void |
checkForEsig(java.lang.String optionName) |
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
|
protected OSProcessScriptContext |
createScriptContext(MboRemote mbo) |
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
|
protected MboRemote |
findOrCreateFauxMboFromRequest(MboSetRemote 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
|
protected java.lang.String |
getOrgSiteColumn()
Get the org-site-set column
|
java.lang.String |
getSite()
Default method to get name of the field which has value for site
|
boolean |
isBranchFilterOn() |
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.
|
protected byte[] |
processResponse()
Converts response to byte array
|
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.
|
protected void |
setClassStructureId()
Sets the ClassStructureId column on the mbo.
|
void |
setSkipSetFields(java.lang.String field)
Sets Access modifier.
|
void |
setValidOrgSite(boolean v)
Method to set a swith after org and site is validated.
|
protected boolean |
skipSelfreferencing(MosDetailInfo childInfo,
MosDetailInfo mdi)
Default method to skip object with same name for self-referencing object structures
|
void |
writeAttachments()
Called after processing to write all attachments to the file
|
getDBName, getInterDD, getJsonRequest, getKeyArray, getKeyArray, getMboServer, getMosName, getPrimaryMbo, getTransaction, getTransactionAction, getTranslator, getUserInfo, hasInvokedScript, hasScript, isMaxVarEQ, isRESTEditMode, isSetValueMode, isValueEQ, setJsonRequest, setMosName, setOSName, setOSPrimaryMbo, setUserInfo
protected java.lang.String actionInd
protected java.lang.String messageType
protected java.lang.String processTable
protected StructureData struc
protected java.util.ArrayList updatedSet
protected boolean validOrgSite
protected MboSetRemote targetMboSet
protected MboRemote targetMbo
protected java.util.Map metaData
protected java.util.Map targetMbos
protected java.util.List responseMbos
protected boolean replyRequired
protected long accessModifier
protected int action
protected boolean toBeSaved
protected boolean selfRef
protected javax.xml.stream.XMLStreamWriter writer
protected java.io.ByteArrayOutputStream byteOutputStream
public 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 exceptionprotected OSProcessScriptContext createScriptContext(MboRemote mbo)
protected MboRemote findOrCreateFauxMboFromRequest(MboSetRemote mboSet) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public 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 exceptionprotected void checkForEsig(java.lang.String optionName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkValidateErrors() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic 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
MXException
public 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 exceptionprotected void applyXMLRules() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionprotected void applyDMRules(StructureData data, UserInfo info) throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionprotected int applyMboRules(MboRemote ruleMbo, java.lang.String hpath) throws MXException, java.rmi.RemoteException
ruleMbo
- Give Mbo to apply rule.hpath
- Give location path of the level.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionprotected void callMboExit() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionprotected boolean skipSelfreferencing(MosDetailInfo childInfo, MosDetailInfo mdi) throws MXException, java.rmi.RemoteException
childInfo
- current level MosDetailInfomdi
- parent level MosDetailInfoMXException
- 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 referenceMXException
java.rmi.RemoteException
protected void buildResponse(MboRemote mbo, int itr, int size) throws MXException, java.rmi.RemoteException
mbo
- Give Mbo for the current level.itr
- Give position in the set.size
- Give size of the set.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionprotected void buildResponseEnd() throws MXException, java.rmi.RemoteException
mbo
- Give Mbo for the current level.itr
- Give position in the set.size
- Give size of the set.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionprotected byte[] processResponse() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic 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 exceptionprotected java.lang.String getOrgSiteColumn() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void setClassStructureId() throws MXException, java.rmi.RemoteException
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic boolean isBranchFilterOn()