詳細情報:
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"
}]
}