Hello everyone, This week, I wrote the first implementation method to create the request state_machine dynamically. There were some prerequisites for this like adding a new field to the state model to identify the unique initial state of the machine. So I added the same and also wrote a validation method validates_intial_state which ensures that only one initial state exists per machine. After this I changed the current static creation method of state_machine in request.rb to a dynamic one by fetching the data from the database (defined by admin role). I also changed the code for assigning states in request to a dynamic approach. Of course the most important part of this exercise was to ensure that all the existing tests are passed with this new code. After a few changes as pointed out by my mentor, I was able to make the code pass all the specs. In the next week, I will make this implementation method more robust by ensuring that it will work under different situations like updating the state_machine details, accessing the model when machine details are absent,etc. I will also be adding a new validation to the request model (has_no_expenses?). Both the above tasks will include extensive testing as well. Thank You Karthik.S 2nd Year,Information Technology NITK,Surathkal -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org To contact the owner, email: opensuse-project+owner@opensuse.org