- CPS-1034Getting issue details... STATUS
# | Issue | Notes/Jira | Decision |
---|---|---|---|
1 |
Implementation Proposal
Problem Statement :
To publish the NcmpEvent when there is a change in the cmHandleState ( state transition )
Potential Solutions
- Use code triggers
- Any other solution ?
Solution #1 : Code Triggers
- Identify all the possible cm handle state transitions.
State Transition Event | previousState | targetState |
---|---|---|
NOTHING_TO_ADVISED | NOTHING | ADVISED |
ADVISED_TO_LOCKED | ADVISED | LOCKED |
LOCKED_TO_ADVISED | LOCKED | ADVISED |
ADVISED_TO_READY | ADVISED | READY |
READY_TO_LOCKED | READY | LOCKED |
LOCKED_TO_READY | LOCKED | READY |
ADVISED_TO_DELETING | ADVISED | DELETING |
READY_TO_DELETING | READY | DELETING |
LOCKED_TO_DELETING | LOCKED | DELETING |
DELETING_TO_DELETED | DELETING | DELETED |
- Create a cmHandleState handler which takes in the cmHandleState transition event
-- Responsible for identifying the state transition
-- Based on state transition call the relevant methods to create the NcmpEvent accordingly. - Identify the trigger points in the code where the actual state transitioning is happening and call the handler from there and provide the type of transition.