您在此处:
StateRuleService:getTransitionStates
使用此服务获取默认转换状态、每个从状态转换的到状态、当前状态和目标对象的最后一个默认状态。
方法:getTransitionStates
输出 JSON
{
"defaultTransitionStates": ["Draft", "Submitted", "Approved", "Underwriting"],
"eachStateToStates": {
"Underwriting": ["Approved"],
"Submitted": ["Approved", "Decline", "Underwriting"],
"Draft": ["Submitted"],
"Approved": ["Issued"]
},
"currentState": "Submitted",
"lastDefaultState": "Draft",
"failureMessages": [{
"name": "Rule 1",
"message": "Failure Message"
}, {
"name": "Rule 2",
"message": "Failure Message"
}]
}