def __BAP_${trade}_S${sid}_IMPL(__REQ__,__RSP__,__BUF__ = None,__EXT__ = None): ''' 索 引:INDEX_S${sindex}_N0 功 能:${desc} 节 点:步骤${sindex} 交 易:${trade} ''' CGC_Debug("开始步骤 ${trade}-STEP[${sindex}]:[${desc}]") objResult = None try: objMethod = ${startFunc} while(type(objMethod) is FunctionType): objResult = objMethod(__REQ__,__RSP__,__BUF__,__EXT__) objMethod = objResult except Exception,PyExcp: CGC_Trace("异常:步骤[${sindex}],[${errcode + "01"}]-[%s]" % (str(PyExcp))) objResult = __BAP_${trade}_S${sid}_EXP(__REQ__,__RSP__,__BUF__,__EXT__,"${errcode + "01"}",str(PyExcp)) finally: ${logicText}<#rt/>