Bug 5841 - StateMachine is unreadable and hardly maintainable
: StateMachine is unreadable and hardly maintainable
Status: RESOLVED FIXED
: GRAM
wsrf managed execution job service
: alpha
: Macintosh All
: P2 normal
: 4.2
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-02-05 12:57 by
Modified: 2008-02-06 14:20 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-02-05 12:57:29
Change the 3000+ line unreadable and unmaintainable StateMachine into a 
small controller (StateMachine) and a bunch of handlers each being responsible
for processing a certain internal state. This breaks up the StateMachine into 
smaller and more readable pieces.

During initialization of the StateMachine all elements of the Enum
InternalState
are read and a handler per internal state is instantiated and stored in a 
handler array. If it comes to processing of a resource the appropriate handler
is 
looked up in this array.