Loading...
 

CX_TXN_DESCRIPTOR - Transaction description

CX_TXN_DESCRIPTOR

Class hierarchy
Description (Business Pattern)

Together with the classes CX_DIM_DESCRIPTOR and CX_DATA_DESCRIPTOR, such specifications are made in order to post objects of the type CX_TRANSACTION. These are descriptions that - in accordance with the OLAP principle - initiate the account assignment of a document.

These details - called transaction descriptions in ClassiX® (not to be confused with database transactions) - are stored persistently in the database. In order to be able to post a document of type CX_TRANSACTION, a transient version of these transaction descriptions is used, the transaction manager of type CX_TXN_MANAGER (see the function CreateTxnManager()).

The processing of transaction descriptions can be profiled via the PROFILE Manager.

Code example:
 
Var(txnManager)

Define(SetTxnManager)
Dup "uniqueID = %s" FindFirst(CX_TXN_DESCRIPTOR)
Dup ifnot
{
Drop
T("TXN Beschreibung ", "TXN descriptor ") Swap *
T(" nicht gefunden!", " not found!") *
Attention(AbortTXN) CloseWindow cancel
}
Swap Drop Call(CreateTxnManager)
;


Define(MakeBooking)
[] PlugSpace
txnManagerEdit ifnot
{
"REORG_
ALL_INVOICES" SetTxnManager -> txnManagerEdit
FindAll(CX_INVOICE)
iterate
{
txnManagerEdit Swap Call(GetProcessed
}
}
;

List of methods (MDI)
Function MA* Parameters Return Brief description
CreateTxnManager CX_TXN_MANAGER Generating a transient instance of the Transaction Manager
HasSubTransactionsConstraint * Precondition for executing the transaction description
SanityCheck INTEGER Check for consistency of the object
ClassFilter STRING, INTEGER OBJECT This object, if it corresponds to a certain class
ConditionedFilter STRING OBJECT
ConditionedFilter2 OBJECT OBJECT
Deleted INTEGER Object marked as deleted?
Description STRING Name of this object
GetDomain INTEGER Domain of this object
GetSiblings COLLECTION All siblings of this object
GetSiblings2 COLLECTION All siblings of this object
GetSlotEntries
VECTOR<CX_VESSEL>
Return of internal information about slots
LastUpdate OBJECT Date of the last write access
LastUser INTEGER User who last had write access to the object
link OBJECT Add this object to the list of objects with validity
NextValidObject OBJECT Subsequent validity object in time
PreviousValidObject OBJECT Previous validity object in time
RestrictedValidity * Area of validity limited?
SetDomain INTEGER, INTEGER Set domain
ShortName STRING Short name of this object
Siblings * Objects with validity
SpanDateValidity * Period of validity
string INTEGER CX_STRING Returns the string representation of the object
Unlink Remove this object from the list of objects with validity
Unlink2 Remove this object from the list of objects with validity
Valid OBJECT INTEGER Check validity
ValidSince OBJECT Start of validity period
ValidToday INTEGER Valid today?
ValidUntil OBJECT End of validity period
VerifySiblings INTEGER Check ring of exchange objects

* MA = Member Access function,
grey background = inherited function

Data directory (DDI)
Data field Type Reference class I* Brief description
txnManagerID INTEGER Number code of the transaction description. Is added(!) to the CX_TRANSACTION::txnManagerID field during posting. This number can be used to recognise the transaction description with which a document was posted. It is therefore advisable to use a bit pattern for this number.

The transaction commitment for writing off/posting back a voucher should contain the negative value of the transaction description with which the voucher is posted.
dimDescriptors COLLECTION CX_DIM_DESCRIPTOR List of dimension descriptions
uniqueID STRING * Unique key
validity POINTER CX_VALIDITY Validity period of the object

* I = Indexable data field,
grey background = inherited data field

Use in AppsWH
Module Brief description
txndescr.mod Transaction description basic module
txndeedt.mod Transaction description Editing module
txndesel.mod Transaction description selection module