![]() |
T4EA
18.1 C7177 A20283
Teamcenter Gateway for Enterprise Applications API Reference
|
Functions | |
convertTimeString2Secs TimeString | |
This function converts a given time string into the number of seconds of the day. More... | |
getLogLineMessageType4rc rc_func ?strDefaultMessageType? args | |
Calculates the corresponding message type (for tpwrite log lines) based on the input return code. More... | |
getSessionLogChannel args | |
Returns the Session log-file name of the current transfer session. If no session log-file name is available, the default LogChannel is used. More... | |
getTransactionLogChannel args | |
Returns the Log-channel information defined for the active transaction. More... | |
initStatusInfo args | |
Initializes the global StatusInfo buffer array. More... | |
matchStringWithRegExp compareExpr matchString args | |
resetLastErrorMessage args | |
Initializes the global ErrorMessage buffer array. More... | |
sendMail2BGS2 addr from smtp port message org subject xmailer ttype prio args | |
This function will send a mail via the BGSs and a smtp. More... | |
sendMailWithErrorList FromMailAddr MailAddr Subject ErrorMessage ?Prio? | |
Send an email via the BGS server to a specified receiver including all stored error messages. More... | |
setTransactionLogChannel TransactionLogChannel | |
Stores the name of the Transaction log-file into the internal buffer. More... | |
storeMessage2 MessageSource Message ?Kind? ?Format? | |
writes an entry to the internal error message buffer so so that the information can be displayed to the Teamcenter user More... | |
storeMessage2DatasetLogfile MessageSource Message ?Kind? ?Format? | |
writes an entry to the internal message buffer so that the information can written to the log-file dataset More... | |
storeUserMessage Severity MessageId ?S1? ?S2? ?S3? ?S4? ?S5? | |
writes an user error entry to the internal error message buffer so that the information can be displayed to the Teamcenter user More... | |
tp_split strInput strSplit ?blnTrim? | |
Just like the TCL split, but with the possibility to use more than one character as split parameter. More... | |
writeLogLineWithAttachment2BGS strLogChannel strLogLine strLinkName strAttachmentData ?strAttachmentMType? ?strMessageType? ?strAttachmentName? ?strHost? ?strPort? args | |
Creates an attachment on the given server and adds it to the specified log line. More... | |
writeVersionInfo2LogChannel LogChannel args | |
Writes the version info to a given log channel. More... | |
Variables | |
CtrlParam | |
LastError | |
TransactionLogChannel | |
T4X::CORE::convertTimeString2Secs | TimeString | ||
This function converts a given time string into the number of seconds of the day.
TimeString | in one of the following formats
|
Referenced by T4X::BATCHJOB::EXPORT::createJob(), and T4X::BATCHJOB::IMPORT::createJob().
T4X::CORE::getLogLineMessageType4rc | rc_func ?strDefaultMessageType? args | ||
Calculates the corresponding message type (for tpwrite log lines) based on the input return code.
rc_func | - return code for which the message type should be calculated |
strDefaultMessageType | - OPTIONAL - default: INTERN; Can be used to set DEBUG or any other message type as default |
References PL4X::CORE::getLogLineMessageType4rc().
Referenced by T4X::MESSAGING::acknowledgeMessage(), T4X::MESSAGING::closeAll(), T4X::MESSAGING::closeConnection(), T4X::CUSTOM::MAPPING::TOOLBOX::createTC_Object(), T4X::CUSTOM::MAPPING::TOOLBOX::createTC_Object2(), T4X::CUSTOM::MAPPING::TOOLBOX::importNamedReference(), T4X::MESSAGING::receiveMessage(), T4X::CUSTOM::MAPPING::TOOLBOX::saveItemWithUnlock(), T4X::CUSTOM::MAPPING::TOOLBOX::selectTC_Object(), and T4X::MESSAGING::startConnection().
T4X::CORE::getSessionLogChannel | args | ||
Returns the Session log-file name of the current transfer session. If no session log-file name is available, the default LogChannel is used.
none |
References PL4X::CORE::getSessionLogChannel().
Referenced by T4X::MESSAGING::acknowledgeMessage(), ITK::BOMLINE_cutbomline(), T4EA::GENBOM::CUSTOM::MAPPING::callCustomerRuleHandler(), T4EA::GENOBJ::CUSTOM::MAPPING::callCustomerRuleHandler(), T4EA::CONNECTION2EA::CUSTOM::MAPPING::checkActiveEASystemForTargetTypeName(), T4EA::CUSTOM::SERVICES::DEMOERP::checkConnection(), T4EA::JDBC::ORACLE::checkConnection(), T4EA::CUSTOM::SERVICES::checkConnection(), T4EA::CONNECTION2EA::checkConnection2EA(), T4EA::PROP::MAPPING::checkConnection2EA4Session(), T4EA::CONNECTION2EA::CUSTOM::MAPPING::checkConnection2EA4Session(), T4EA::CONNECTION2EA::CUSTOM::MAPPING::checkConnection2EA4Transaction(), T4EA::GENOBJ::CUSTOM::MAPPING::checkConnection2EA4Transaction(), T4X::BATCHJOB::EXPORT::checkConnection2ERP(), T4X::BATCHJOB::IMPORT::checkConnection2ERP(), T4EA::checkEAPassword(), T4EA::GENOBJ::CUSTOM::OBJECT::IMPORT::cleanUp(), T4EA::GENOBJ::CUSTOM::PRODUCT_INFORMATION::IMPORT::cleanUp(), T4EA::BOM::CUSTOM::ITEM::IMPORT::cleanUp(), T4EA::JDBC::ORACLE::cleanupAllJdbcConnections(), T4EA::JDBC::ORACLE::cleanupJdbcConnection(), T4X::MESSAGING::closeAll(), T4X::MESSAGING::closeConnection(), T4EA::CONNECTION2EA::closeConnection2EA4Session(), T4EA::CONNECTION2EA::CUSTOM::MAPPING::connectEA(), T4X::TEST::WORKFLOW::createBatchJob4Workflow(), T4EA::JDBC::ORACLE::createJdbcMetafile(), T4EA::CUSTOM::ORACLE::createProductInformation(), T4X::CUSTOM::MAPPING::TOOLBOX::createTC_Object(), T4EA::GENOBJ::CUSTOM::OBJECT::IMPORT::createTC_Object(), T4EA::GENOBJ::CUSTOM::PRODUCT_INFORMATION::IMPORT::createTC_Object(), T4EA::BOM::CUSTOM::ITEM::IMPORT::createTC_Object(), T4X::CUSTOM::MAPPING::TOOLBOX::createTC_Object2(), T4EA::BOM::CUSTOM::ITEM::IMPORT::createTCBOMview_Object(), T4EA::CUSTOM::SERVICES::DEMOERP::DemoERPService(), T4EA::PROP::CUSTOM::MAPPING::displayOfbizFixedAsset(), T4EA::PROP::CUSTOM::MAPPING::displayOfbizProduct(), T4EA::PROP::CUSTOM::MAPPING::displayOracleProductInformation(), T4EA::PROP::CUSTOM::MAPPING::displaySoapArticle(), T4EA::PROP::CUSTOM::MAPPING::displaySoapDocument(), T4EA::GENBOM::CUSTOM::MAPPING::EA_Object2TC_Object(), T4EA::GENOBJ::CUSTOM::MAPPING::EA_Object2TC_Object(), T4X::BATCHJOB::EXPORT::executeExportJob(), T4X::BATCHJOB::IMPORT::executeImportJob(), T4EA::QUERY::CUSTOM::MAPPING::executeQuery(), T4EA::QUERY::CUSTOM::MAPPING::executeQuery4OfbizProduct(), T4EA::QUERY::CUSTOM::MAPPING::executeQuery4ProductInformation(), T4X::SOA::executeTCSOACall(), T4X::TEST::WORKFLOW::executeTcWorkflowJob(), T4X::TC::MAPPING::FieldMapping(), T4X::TC::MAPPING::findIndexedObjectId4Value(), T4X::TC::MAPPING::findIndexedObjectList4Attribute(), T4X::TC::MAPPING::findObjectId4Value(), T4X::TC::MAPPING::findObjectList(), T4X::TC::MAPPING::findObjectList4Value(), T4X::TC::MAPPING::findRootTaskObjectList(), T4EA::GENBOM::CUSTOM::MAPPING::genERPInput(), T4EA::GENOBJ::CUSTOM::OBJECT::IMPORT::GenObjMapping2TC_Object(), T4EA::GENOBJ::CUSTOM::PRODUCT_INFORMATION::IMPORT::GenObjMapping2TC_Object(), T4EA::PROP::CUSTOM::MAPPING::getArrayDataSave(), T4EA::JDBC::ORACLE::getConnectionHandle4System(), T4X::SOA::getConnectionParameters(), T4EA::BOM::CUSTOM::ITEM::IMPORT::getCurrentTcBomInfo(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_Article(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_BillOfMaterial(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_Document(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_FixedAsset(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_Product(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_ProductAssociation(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_ProductDocument(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_ProductInformation(), T4EA::PROP::CUSTOM::MAPPING::GetEAData_QueryResultObject(), T4EA::GENBOM::CUSTOM::MAPPING::getERPBOMLine(), T4EA::GENOBJ::CUSTOM::PRODUCT_INFORMATION::IMPORT::getERPOutputData(), T4EA::PROP::MAPPING::getExternalDataView(), T4EA::BOM::CUSTOM::ITEM::IMPORT::getImportBomInfo(), T4EA::CONNECTION2EA::getListOfEAConnections2EA4Session(), T4EA::getLocalizationString(), T4X::TC::MAPPING::getLogChannelBasedOnTransactionId(), T4X::TC::MAPPING::getObjectAttributeValue(), T4EA::CUSTOM::ORACLE::getObjectInfo(), T4EA::GENOBJ::CUSTOM::OBJECT::IMPORT::getObjectInfo(), T4EA::GENOBJ::CUSTOM::PRODUCT_INFORMATION::IMPORT::getObjectInfo(), T4EA::GENBOM::CUSTOM::MAPPING::getObjectInfo(), T4EA::GENOBJ::CUSTOM::MAPPING::getObjectInfo(), T4X::TC::MAPPING::getObjectsValueList(), T4X::TC::MAPPING::getPreferenceValue(), T4EA::CONNECTION2EA::getPreferredConnection2EA4Session(), T4X::TC::MAPPING::getQueryArgumentValue(), T4X::XML::PARSER::getResultArrayInfo(), T4X::TC::MAPPING::getRootTaskFieldMappingValueList(), T4EA::GENOBJ::CUSTOM::OBJECT::IMPORT::getTargetRevisionFromList(), T4EA::GENOBJ::CUSTOM::PRODUCT_INFORMATION::IMPORT::getTargetRevisionFromList(), T4EA::BOM::CUSTOM::ITEM::IMPORT::getTargetRevisionFromList(), T4EA::CONNECTION2EA::CUSTOM::MAPPING::getTargetTypeNames4Connection(), T4EA::GENBOM::CUSTOM::MAPPING::getTcData(), T4X::TC::MAPPING::getWorkflowArgumentValue(), T4X::TC::MAPPING::getWorkflowArgumentValue2(), T4X::TC::MAPPING::getWorkflowArgumentValue3(), T4EA::PROP::CUSTOM::MAPPING::getXmlData(), T4EA::GENOBJ::CUSTOM::OBJECT::IMPORT::getXmlData(), T4EA::BOM::CUSTOM::ITEM::IMPORT::importBOM2TcBOM(), T4X::CUSTOM::MAPPING::TOOLBOX::importNamedReference(), T4EA::QUERY::CUSTOM::MAPPING::importQueryRowViaBatch(), T4X::SOA::importSSLCertificate(), T4X::TC::MAPPING::IndexedFieldMapping(), T4EA::JDBC::ORACLE::initJdbcConnection(), T4EA::CUSTOM::ORACLE::logException(), T4EA::CUSTOM::SERVICES::ofBIZservice(), T4EA::CUSTOM::SERVICES::ofBIZservice4BillOfMaterial(), T4EA::CUSTOM::SERVICES::ofBIZservice4Document(), T4EA::CUSTOM::SERVICES::ofBIZservice4getAssociatedProducts(), T4EA::CUSTOM::SERVICES::ofBIZservice4Product(), T4X::SOA::performEBSCall(), T4X::SOA::performGenericWebServiceCall(), T4X::SOA::performGenericWebServiceCall2(), T4X::SOA::performGenericWebServiceCallFireAndForget(), T4X::SOA::performSAPBAPICall(), T4X::SOA::performSAPESCall(), T4EA::GENBOM::CUSTOM::MAPPING::performTransfer(), T4EA::GENOBJ::CUSTOM::MAPPING::performTransfer(), T4EA::CUSTOM::SERVICES::prepareStatus(), T4EA::CONNECTION2EA::readConnectionInfo(), T4EA::CONNECTION2EA::readConnectionInfo4Session(), T4X::MESSAGING::receiveMessage(), T4X::TC::MAPPING::RootTaskFieldMapping(), T4X::TC::MAPPING::save_unlockTcObject(), T4X::CUSTOM::MAPPING::TOOLBOX::saveItemWithUnlock(), T4EA::CONNECTION2EA::selectActiveConnection2EA(), T4X::CUSTOM::MAPPING::TOOLBOX::selectTC_Object(), T4EA::GENOBJ::CUSTOM::OBJECT::IMPORT::selectTC_Object(), T4EA::GENOBJ::CUSTOM::PRODUCT_INFORMATION::IMPORT::selectTC_Object(), T4EA::BOM::CUSTOM::ITEM::IMPORT::selectTC_Object(), T4X::CUSTOM::MAPPING::TOOLBOX::selectTC_ScheduleObject(), T4EA::BOM::CUSTOM::ITEM::IMPORT::selectTCBOMview_Object(), T4X::MESSAGING::sendBinaryMessage(), T4X::MESSAGING::sendStringMessage(), T4X::SOA::setProxy(), T4X::MESSAGING::startConnection(), storeMessage2(), storeMessage2DatasetLogfile(), T4EA::GENOBJ::CUSTOM::MAPPING::TC_Object2EA_Object(), T4EA::GENBOM::CUSTOM::MAPPING::TC_Object2EA_Object(), T4EA::GENBOM::CUSTOM::MAPPING::TC_Object2EA_ObjectPosition(), tp_crashexit(), T4EA::CUSTOM::ORACLE::updateProductInformation(), T4EA::GENOBJ::CUSTOM::OBJECT::IMPORT::updateTC_Object(), T4EA::GENOBJ::CUSTOM::PRODUCT_INFORMATION::IMPORT::updateTC_Object(), T4EA::BOM::CUSTOM::ITEM::IMPORT::updateTC_Object(), T4EA::CONNECTION2EA::verifyConnection2EA4Session(), T4EA::CONNECTION2EA::verifyConnection2EA4Workflow(), T4X::BATCHJOB::TOOLBOX::writeTcUser2LogIndex(), and T4X::BATCHJOB::IMPORT::writeTransactionLog().
T4X::CORE::getTransactionLogChannel | args | ||
Returns the Log-channel information defined for the active transaction.
none |
Referenced by T4X::TC::MAPPING::storeReverseMapping2TcObject2().
T4X::CORE::initStatusInfo | args | ||
Initializes the global StatusInfo buffer array.
none |
Referenced by T4EA::checkEAPassword(), T4X::BATCHJOB::EXPORT::executeExportJob(), T4X::BATCHJOB::IMPORT::executeImportJob(), T4X::TEST::WORKFLOW::executeTcWorkflowJob(), and T4EA::CONNECTION2EA::verifyConnection2EA4Workflow().
T4X::CORE::matchStringWithRegExp | compareExpr matchString args | ||
References tpwrite().
T4X::CORE::resetLastErrorMessage | args | ||
Initializes the global ErrorMessage buffer array.
none |
Referenced by T4X::BATCHJOB::EXPORT::executeExportJob(), T4X::BATCHJOB::IMPORT::executeImportJob(), T4X::TEST::WORKFLOW::executeTcWorkflowJob(), and T4EA::CONNECTION2EA::verifyConnection2EA4Workflow().
T4X::CORE::sendMail2BGS2 | addr from smtp port message org subject xmailer ttype prio args | ||
This function will send a mail via the BGSs and a smtp.
addr | : receiver mail address |
from | : sender mail address |
smtp | : <DNS|IP|HOST> address of the SMTP server |
port | : smpt server port (not yet supported, for future usage) |
message | email message text |
org | : Inhalt des ORG Flags |
subject | subject of the email |
xmailer | - dummy - (for future usage) |
ttype | : HTML | PLAIN |
prio | : "" | high | low |
args | : list of file attachments (please make sure that the files are copied to the BGS before the mail is send) |
Sample code sequence
Referenced by sendMailWithErrorList().
T4X::CORE::sendMailWithErrorList | FromMailAddr MailAddr Subject ErrorMessage ?Prio? | ||
Send an email via the BGS server to a specified receiver including all stored error messages.
FromMailAddr | sender mail address(e.g. i.am@) sour ce.co m |
MailAddr | receiver mail address(e.g. i.am@) xyz. com |
Subject | subject string of the email |
ErrorMessage | prefix string for the message body |
Prio | : "" | high | low |
Sample code sequence
References sendMail2BGS2().
T4X::CORE::setTransactionLogChannel | TransactionLogChannel | ||
Stores the name of the Transaction log-file into the internal buffer.
TransactionLogChannel |
Referenced by T4X::BATCHJOB::IMPORT::executeImportJob().
T4X::CORE::storeMessage2 | MessageSource Message ?Kind? ?Format? | ||
writes an entry to the internal error message buffer so so that the information can be displayed to the Teamcenter user
MessageSource | defines the origin system or module of the message |
Message | messages string default format is hex encoded |
Kind | ERROR | INFO | WARNING |
Format | HEX|NOHEX defines if the message string is hex encoded or not default is NOHEX |
References getSessionLogChannel(), tpco_formatHEX16(), tpco_getHostName(), and tpwrite().
Referenced by T4EA::CUSTOM::SERVICES::DEMOERP::checkConnection(), T4EA::CUSTOM::SERVICES::checkConnection(), T4EA::CONNECTION2EA::checkConnection2EA(), T4EA::GENBOM::CUSTOM::MAPPING::EA_Object2TC_Object(), T4EA::GENOBJ::CUSTOM::MAPPING::EA_Object2TC_Object(), T4EA::GENBOM::CUSTOM::MAPPING::getObjectInfo(), T4EA::GENOBJ::CUSTOM::MAPPING::getObjectInfo(), T4EA::GENBOM::CUSTOM::MAPPING::performTransfer(), T4EA::GENOBJ::CUSTOM::MAPPING::performTransfer(), T4EA::GENOBJ::CUSTOM::MAPPING::TC_Object2EA_Object(), T4EA::GENBOM::CUSTOM::MAPPING::TC_Object2EA_Object(), T4EA::GENBOM::CUSTOM::MAPPING::TC_Object2EA_ObjectPosition(), T4EA::CONNECTION2EA::verifyConnection2EA4Session(), T4X::TRANSLOG::writeBomLineMappingStatusLog(), T4X::TRANSLOG::writeCustomMappingStatusLog(), and T4X::TRANSLOG::writeCustomReverseMappingStatusLog().
T4X::CORE::storeMessage2DatasetLogfile | MessageSource Message ?Kind? ?Format? | ||
writes an entry to the internal message buffer so that the information can written to the log-file dataset
MessageSource | defines the origin system or module of the message |
Message | messages string default format is hex encoded |
Kind | ERROR | INFO | WARNING |
Format | HEX|NOHEX defines if the message string is hex encoded or not default is NOHEX |
References getSessionLogChannel(), tpco_formatHEX16(), tpco_getHostName(), and tpwrite().
T4X::CORE::storeUserMessage | Severity MessageId ?S1? ?S2? ?S3? ?S4? ?S5? | ||
writes an user error entry to the internal error message buffer so that the information can be displayed to the Teamcenter user
Severity | - ERROR | INFO | WARNING - by unknown will be set to ERROR |
MessageId | - for UserError use the range 919000-919999 |
S1 | Character string being substituted into the internationalized message associated with this ifail code |
S2 | Character string being substituted into the internationalized message associated with this ifail code |
S3 | Character string being substituted into the internationalized message associated with this ifail code |
S4 | Character string being substituted into the internationalized message associated with this ifail code |
S5 | Character string being substituted into the internationalized message associated with this ifail code |
References tpco_getHostName(), and tpwrite().
T4X::CORE::tp_split | strInput strSplit ?blnTrim? | ||
Just like the TCL split, but with the possibility to use more than one character as split parameter.
strInput | - input string which should be split |
strSplit | - split string (more than one character possible) |
blnTrim | - OPTIONAL (FALSE) - If TRUE, the returned values will be trimmed |
T4X::CORE::writeLogLineWithAttachment2BGS | strLogChannel strLogLine strLinkName strAttachmentData ?strAttachmentMType? ?strMessageType? ?strAttachmentName? ?strHost? ?strPort? args | ||
Creates an attachment on the given server and adds it to the specified log line.
strLogChannel | - Defines the log file in the log server |
strLogLine | - Message in the log file where the attachment will be added as a link |
strLinkName | - The name of the link |
strAttachmentData | - The content/payload of the attachment |
strAttachmentMType | - Mime type of the attachment (Optional - Default text/xml) |
strMessageType | - Message type (like INTERN, DEBUG, WARNING, ERROR) (Optional - Default INTERN) |
strAttachmentName | - The name of the attachment (Optional - Default Attachment_timestamp + valid file extension for text/plain (.txt) and text/xml (.xml)) |
strHost | - this argument is ignored |
strPort | - this argument is ignored |
strLogChannel | - Defines the log file in the log server |
References TPHAP::setAttaLink(), tpco_udpWriteRemoteAttachment2(), and tpwrite().
Referenced by T4EA::CUSTOM::SERVICES::DEMOERP::DemoERPService().
T4X::CORE::writeVersionInfo2LogChannel | LogChannel args | ||
Writes the version info to a given log channel.
LogChannel | name used for the version version string output |
args | none |
References tpco_shmget(), and tpwrite().
Referenced by T4X::TEST::WORKFLOW::executeTcWorkflowJob().
|
static |
|
static |
|
static |