CX_TRANSACTION::PredecessorsTop
Description:
This function returns a collection of all top-level transactions(TopTransaction()) from all predecessors; the predecessor chain is examined widely INTEGER elements. If the INTEGER parameter is reached or no further predecessors follow, the element is added to the return collection (if INTEGER=0 a collection with the calling element(this) is returned.
Code example:
Define(RefillItems)
-> tmp
order ifnot return
order tmp Get(PredecessorsTop(1)) Contains if FillItems
;
Stack | Position | Object type | Brief description |
---|---|---|---|
Stack(In) | Top | CX_TRANSACTION | A transaction |
Top 1 | INTEGER | Number of elements | |
Stack(Out) | Top | COLLECTION | predecessor |