Name: Add
                         
                         Stage: end-explicit
                         
                         Message: 
Add-FSM for VM Controller: name VM Domain: domName VM Provider: name Error: remoteErrMsg(FSM:ifc:vmmmgr:CompCtrlrAdd)                         
Begin State: Init
| States | 
| Init | 
| 
                                      Initialization stage 
                                      
                                       On Success: Connect 
                                       Notify:   | 
                             
| Connect | 
| 
                                      Stage to establish connection to the controller
                                                                Establishing the connection can take time.
                                                                So using higher timeout value 
                                      
                                       On Success: GetTimestamp 
                                       Notify:   | 
                             
| GetTimestamp | 
| 
                                      Get current TimeStamp 
                                      
                                       On Success: GetInventory 
                                       Notify:   | 
                             
| GetInventory | 
| 
                                      Get inventory from controllers 
                                      
                                       On Success: SubscribeEvents 
                                       Notify:   | 
                             
| SubscribeEvents | 
| 
                                      Stage to register for compute and network events 
                                      
                                       On Success: PostInventory 
                                       Notify:   | 
                             
| PostInventory | 
| 
                                      Post Inventory - DVS creation Stage.
                                                                For eg: creating IFC folder, DVS in vcenter 
                                      
                                       On Success: Online 
                                       Notify:   | 
                             
| Online | 
| 
                                      Online Stage, ready to process policies, events etc 
                                      
                                       On Success:  
                                       Notify:   |