def __BAP_${trade}_S${sid}_N${nid}(__REQ__,__RSP__,__BUF__ = None,__EXT__ = None): ''' 索 引:INDEX_S${sindex}_N${nindex} 功 能:${desc} 节 点:步骤${sindex}节点${nindex} 交 易:${trade} ''' CGC_Trace("调用节点 ${trade}-STEP[${sindex}]-NODE[${nindex}]:${desc}") ${inArgText}<#rt/> <#if funcName == "END"> <#elseif funcName == "CGC_INN_BOOL"> CGC_Trace(("布尔判断表达式:"+str(objArg0) )) <#if reType == "NOT_RETURN"> return ${reExVal} <#else> if(type(objArg0) is bool) and objArg0 is True: <#if reVal1?exists> CGC_Trace("出口分支=1") return ${reVal1} <#else> return ${reExVal} else: <#if reVal0?exists> CGC_Trace("出口分支=0") return ${reVal0} <#else> return ${reExVal} <#elseif funcName == "CGC_INN_ASYNC"> if(not type(objArg0) is dict): raise CGCException("E","${errcode + "01"}","入参0必须是dict类型") elif(not type(objArg1) is str): raise CGCException("E","${errcode + "02"}","入参1必须是str类型") elif(not type(objArg2) is str): raise CGCException("E","${errcode + "03"}","入参2必须是str类型") objArg0["__ASYNC__"] = True objArg0["__AMC__"] = objArg1 objArg0["__ATC__"] = objArg2 <#if reVal?exists> return ${reVal} <#else> return ${reExVal} <#elseif funcName == "CGC_INN_GET_GLB_ERROR"> if(not type(objArg0) is dict): raise CGCException("E","${errcode + "01"}","入参0必须是dict类型") elif(not type(objArg1) is str): raise CGCException("E","${errcode + "02"}","入参1必须是str类型") elif(not type(objArg2) is str): raise CGCException("E","${errcode + "03"}","入参2必须是str类型") elif(not type(objArg3) is str): raise CGCException("E","${errcode + "04"}","入参3必须是str类型") objArg0[objArg1] = __REQ__.has_key('__RST__') and __REQ__["__RST__"] or "" objArg0[objArg2] = __REQ__.has_key('__ECD__') and __REQ__["__ECD__"] or "" objArg0[objArg3] = __REQ__.has_key('__MSG__') and __REQ__["__MSG__"] or "" <#if reVal?exists> return ${reVal} <#else> return ${reExVal} <#elseif funcName == "CGC_INN_SWITCH"> <#if reType == "NOT_RETURN"> CGC_Trace("出口分支=0") return ${defFunc} <#else> <#if reType == "SIG_RETURN"> return ${defFunc} <#else> <#list reFunc?keys as name> <#if name_index == 0> if(objArg0 == objArg${name}): <#else> elif(objArg0 == objArg${name}): CGC_Trace("出口分支=${name}") return ${reFunc[name]} else: CGC_Trace("出口分支=0") return ${defFunc} <#else> ${functionBody}<#rt/> if type(listResult) is not list: raise CGCException("E","${errcode + "01"}","组件状态返回值必须是list类型") elif len(listResult) < 3: raise CGCException("E","${errcode + "02"}","组件状态返回值(list)的个数必须有3个以上") elif listResult[1] != None or listResult[2] != None: CGC_SET_DEF_ERROR(__REQ__,"D",str(listResult[1]),str(listResult[2])) <#if outArgFlag == "OUTARGS"> else: listRes = None if len(listResult) >= 4: listRes = listResult[3] if(listRes != None): if type(listRes) is not list: raise CGCException("E","${errcode + "03"}","组件出参必须是list类型") elif len(listRes) == 0: raise CGCException("E","${errcode + "04"}","组件出参个数必须大于0") ${outArgsText}<#rt/> else: CGC_Trace("组件返回值为无出参模式") CGC_Trace("出口分支="+str(listResult[0])) ${logicText}<#rt/>