class reg: def __init__(self): self.cnt = 0 import os ... def TRFCCheck(self, srfc, tid): print "TID (TRFCCheck) is: #" + tid + "#" return False def TRFCCommit(self, srfc, tid): print "TID (TRFCCommit) is: #" + tid + "#" return def TRFCConfirm(self, srfc, tid): print "TID (TRFCConfirm) is: #" + tid + "#" return def TRFCRollback(self, srfc, tid): print "TID (TRFCRollback) is: #" + tid + "#" return
The class must have the 4 defined methods to handle the various stages of tRFC (Queued RFC). If the TRFCCheck method returns True, then the Registered RFC program is acknowledging that it has allready processed the transaction, so by default it should usually return False.