Commit f155fcbc authored by 王业明's avatar 王业明
Browse files

初始化 删除多余bin文件夹

parent d35f9774
'''
交易名称:${tadeCode}
说 明:${desc}
'''
def ${tadeCode}(__REQ__,__RSP__,__SND__,__RCV__):
try:
CGC_Debug("开始业务组件 ${tadeCode}:${desc}")
BAPC_Builtin_SetDefaultExceptNode(None)
_Result_ = False
_Method_ = ${firstMothod}
while(type(_Method_) is FunctionType):
_Result_ = _Method_(__REQ__,__RSP__,__SND__,__RCV__)
_Method_ = _Result_
CGC_Debug("结束业务组件 ${tadeCode}:${desc}")
return (_Method_ == True)
except Exception,PyExcp:
BAPC_Builtin_SetGlobalError("E","BAPC0E001",str(PyExcp))
CGC_Debug(str(PyExcp))
return False
'''
索 引:INDEX_S${sindex}_N${nindex}
功 能:${desc}
节 点:步骤${sindex}节点${nindex}
交 易:${trade}
'''
def __BAP_${trade}_S${sid}_N${nid}(__REQ__,__RSP__,__SND__,__RCV__):
CGC_Debug("调用节点 STEP[${sindex}]-NODE[${nindex}]:${desc}")
${body}<#rt/>
'''
索 引:INDEX_S${sindex}_N${nindex}
功 能:${desc}
节 点:步骤${sindex}节点${nindex}
交 易:${trade}
'''
def __BAP_${trade}_S${sid}_N${nid}(__REQ__,__RSP__,__SND__,__RCV__):
CGC_Debug("调用节点 STEP[${sindex}]-NODE[${nindex}]:${desc}")
try:
${SetDefaultExceptNode}<#rt/>
${inArgText}<#rt/>
${functionBody}<#rt/>
if( not (type(_Result_) is list)):
BAPC_Builtin_SetGlobalError("E","BAPC0002","组件状态返回必须是[List]类型")
return BAPC_Builtin_GetDefaultExceptNode(${errFunc})
elif(len(_Result_) < 3):
BAPC_Builtin_SetGlobalError("E","BAPC0003","组件状态返回的[Item]个数必须有3个以上")
return BAPC_Builtin_GetDefaultExceptNode(${errFunc})
${outArgText}<#rt/>
BAPLoggerTrace("逻辑返回值="+str(_Result_[0]))
${logicText}<#rt/>
except Exception,PyExcp:
BAPC_Builtin_SetGlobalError("E","BAPC0E001",str(PyExcp))
CGC_Debug(str(PyExcp))
return BAPC_Builtin_GetDefaultExceptNode(${errFunc})
if((_Result_[1] == None) and (_Result_[2] == None)):
if(len(_Result_) != 4):
BAPC_Builtin_SetGlobalError("E","BAPC0004","必须有返回值的组件无数据返回")
return BAPC_Builtin_GetDefaultExceptNode(${errFuncName})
_RTVAL_ = _Result_[3]
if(_RTVAL_ != None):
if( not (type(_RTVAL_) is list)):
BAPC_Builtin_SetGlobalError("E","BAPC0005","组件据据返回必须是[list]类型")
return BAPC_Builtin_GetDefaultExceptNode(${errFuncName})
elif(len(_RTVAL_) < 1):
BAPC_Builtin_SetGlobalError("E","BAPC0006","组件数据返回的[Item]个数必须和出参配置(1)一致")
return BAPC_Builtin_GetDefaultExceptNode(${errFuncName})
${outArgsText}<#rt/>
else:
CGC_Trace("组件返回的出参无效,编译器判定为失败模式")
else:
BAPC_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2]))
\ No newline at end of file
'''
索 引:INDEX_S${sindex}_N${nindex}
功 能:${desc}
节 点:步骤${sindex}节点${nindex}
交 易:${trade}
'''
def __BAP_${trade}_S${sid}_N${nid}(__REQ__,__RSP__,__SND__,__RCV__):
CGC_Debug("调用节点 STEP[${sindex}]-NODE[${nindex}]:${desc}")
try:
${functionBody}<#rt/>
if(_Result_ == True):
CGC_Debug("业务组件返回状态:成功")
return ${trueRet}
else:
CGC_Debug("业务组件返回状态:失败")
return ${falseRet}
except Exception,PyExcp:
BAPC_Builtin_SetGlobalError("E","BAPC0E001",str(PyExcp))
CGC_Debug(str(PyExcp))
return BAPC_Builtin_GetDefaultExceptNode(${errRet})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment