Class: TransactionInstance

TransactionInstance()

model TransactionInstance

Constructor

new TransactionInstance()

Source:

Extends

Methods

createGoNextData(resultInfo)

生成下一步的数据 createGoNextData

Parameters:
Name Type Description
resultInfo Array.<object>

结果信息集合

Properties
Name Type Description
id number

Action的id

success boolean

Action的结果是否成功

currentAttemptTime number

Action的当前尝试次数

maxAttemptTime number

Action的最大允许尝试次数

Source:

getCurrentStepInfo() → {getCurrentStepInfoReturn}

获取实例的当前步骤 和 相关信息集合

Source:
Returns:
Type
getCurrentStepInfoReturn

getStepNeedExec() → {getStepNeedExecReturn}

获取实例的当前步骤 需要执行的Action 和相关的集合信息

Source:
Returns:
Type
getStepNeedExecReturn

mergeCurrentStepUpdateActionInfo(resultInfo) → {Array.<ActionProgress>}

将结果信息集合合并生成相应的 ActionInfo 字段

Parameters:
Name Type Description
resultInfo Array.<Object>

结果信息集合

Properties
Name Type Description
id number

Action的id

success boolean

Action的结果是否成功

currentAttemptTime number

Action的当前尝试次数

maxAttemptTime number

Action的最大允许尝试次数

Source:
Returns:

action的进度集合

Type
Array.<ActionProgress>