T4EA  18.1 C7177 A20283
Teamcenter Gateway for Enterprise Applications API Reference
T4EA::GENOBJ::CUSTOM::MAPPING Namespace Reference

Functions

 callCustomerRuleHandler TransactionId Action RuleName ItemType ItemRevisionType args
 Customer specific object RuleHandler function template. More...
 
 checkConnection2EA4Transaction SessionId TransactionId TargetTypeName Mode ObjectType Action ItemType ItemRevisionType
 Customer specific connection check. More...
 
 EA_Object2TC_Object TransactionId TargetTypeName Status ObjectKey args
 Customer specific object reverse mapping function template for TargetTypeName. More...
 
 getObjectInfo TransactionId TargetTypeName ObjectKey args
 Customer specific Mapping function to retrieve the object information from EA. More...
 
 performTransfer TransactionId TargetTypeName args
 Customer specific function to perform the actual transfer to the EA system. More...
 
 TC_Object2EA_Object TransactionId TargetTypeName ItemType ItemRevisionType args
 Customer specific object mapping function template for TargetTypeName. More...
 

Variables

 ERPInputDat
 This variable stores the input to the target EA system. More...
 
 ERPMatNo
 
 ERPOutputDat
 Variable to store the output of the EA call. More...
 
 Mode
 Mode of the export: UPDATE or CREATE. More...
 

Function Documentation

◆ callCustomerRuleHandler()

T4EA::GENOBJ::CUSTOM::MAPPING::callCustomerRuleHandler   TransactionId Action RuleName ItemType ItemRevisionType args  

Customer specific object RuleHandler function template.

Parameters
TransactionId- TC session id
Action- TC RuleHandler action
RuleName- TC RuleHandler rule name
ItemType- TC Item Type
ItemRevisionType- TC Item Revision Type
Returns
EPM_nogo or EPM_go

References T4X::CORE::getSessionLogChannel(), and tpwrite().

◆ checkConnection2EA4Transaction()

T4EA::GENOBJ::CUSTOM::MAPPING::checkConnection2EA4Transaction   SessionId TransactionId TargetTypeName Mode ObjectType Action ItemType ItemRevisionType  

Customer specific connection check.

Parameters
SessionIdunique session ID for the users teamcenter session
TransactionIdunique ID for the transfer transaction
TargetTypeNamespecified transaction target type name for generic TC object transfer
ModeTransfer mode like WORKFLOW, PORTAL, BATCH, RTP, LOV, ... default = "*" for all.
ObjectTypeEA target object type like MM, ECM, ... default = "*" for all.
Actiontransfer action in the GUI like CREATE, CHANGE, ... default = "*" for all.
ItemTypetype of item to transfer
ItemRevisionTypetype of item revision to transfer
Returns
LOGON_OK|LOGON_ERROR|MISSING_LOGIN_DATA|ERROR_CONNECTION_MISMATCH|ERROR_NO_ACTIVE_CONNECTION

References T4EA::CONNECTION2EA::CUSTOM::MAPPING::checkConnection2EA4Transaction(), T4X::CORE::getSessionLogChannel(), and tpwrite().

◆ EA_Object2TC_Object()

T4EA::GENOBJ::CUSTOM::MAPPING::EA_Object2TC_Object   TransactionId TargetTypeName Status ObjectKey args  

Customer specific object reverse mapping function template for TargetTypeName.

Parameters
TransactionId- TC session id
TargetTypeName- TargetTypeName specified in the TC preferences
Status- Transfer status like CREATED, ERROR ...
ObjectKey- EA object id of the transferred object
Returns
OK or ERROR

References T4X::CORE::getSessionLogChannel(), T4X::CORE::storeMessage2(), T4X::TC::MAPPING::storeReverseMappingAttribute(), and tpwrite().

◆ getObjectInfo()

T4EA::GENOBJ::CUSTOM::MAPPING::getObjectInfo   TransactionId TargetTypeName ObjectKey args  

Customer specific Mapping function to retrieve the object information from EA.

Parameters
TransactionId- TC session id
TargetTypeName- TargetTypeName specified in the TC preferences
ObjectKey- EA object id of the transferred object
Returns
OK, NOT_FOUND, ERROR OR UNKNOWN

References T4X::CORE::getSessionLogChannel(), T4X::CORE::storeMessage2(), and tpwrite().

◆ performTransfer()

T4EA::GENOBJ::CUSTOM::MAPPING::performTransfer   TransactionId TargetTypeName args  

Customer specific function to perform the actual transfer to the EA system.

Parameters
TransactionId- TC session id
TargetTypeName- TargetTypeName specified in the TC preferences
Returns
OK or ERROR

References T4EA::CUSTOM::ORACLE::createProductInformation(), T4EA::CUSTOM::SERVICES::DEMOERP::DemoERPService(), T4X::CORE::getSessionLogChannel(), T4EA::CUSTOM::SERVICES::ofBIZservice(), T4X::CORE::storeMessage2(), tpwrite(), T4EA::CUSTOM::ORACLE::updateProductInformation(), and T4X::TRANSLOG::writeCustomMappingLog().

◆ TC_Object2EA_Object()

T4EA::GENOBJ::CUSTOM::MAPPING::TC_Object2EA_Object   TransactionId TargetTypeName ItemType ItemRevisionType args  

Customer specific object mapping function template for TargetTypeName.

Parameters
TransactionId- TC session id
TargetTypeName- TargetTypeName specified in the TC preferences
ItemType- TC Item Type
ItemRevisionType- TC Item Revision Type
Returns
OK or ERROR

References T4X::TC::MAPPING::FieldMapping(), T4X::TC::MAPPING::findObjectList(), T4X::TC::MAPPING::getObjectAttributeValue(), T4X::CORE::getSessionLogChannel(), T4X::TC::MAPPING::printIndexTcData(), T4X::TC::MAPPING::printTcData(), T4X::CORE::storeMessage2(), tpco_getHostName(), tpwrite(), and T4X::TRANSLOG::writeCustomMappingLog().

Variable Documentation

◆ ERPInputDat

ERPInputDat
static

This variable stores the input to the target EA system.

This variable is just a proposal from the demo. The variable can be named as required. Use of such a variable is not required but recommended.

◆ ERPMatNo

ERPMatNo
static

The identifying value for the EA object

◆ ERPOutputDat

ERPOutputDat
static

Variable to store the output of the EA call.

This is just a proposal from the demo. The variable can be named as required. Use of such a variable is not required but recommended.

◆ Mode

Mode
static

Mode of the export: UPDATE or CREATE.