Command Pattern - Deriving commands from UI

Hi,

We are using CQRS in our project and we really appreciate the benefits that it gives in terms of developing the UI without being dependent on domain model. We are currently in process of generating commands from UI and handling those commands. The tricky part about our UI is we perform multiple actions before we want to persist to database. In sense we want to create composite command which in turn containg multiple sub commands when calling save. We are struggling on how to dervie the sub coammand within the composite commands?
Should the sub command be created as part of any UI action on the screen or should it happen at the end when final save is called by comparing the current view with the view that the UI should have started with? Is there any other alternative approach for the same?
Anusha.

I wanted to thank you for

I wanted to thank you for this great read!! I definitely loved every little bit of it. I have bookmarked your site to check out the new stuff you post. egg donation

This blogs has very

This blogs has very interesting news i enter every day to read it is very useful to do my work. International Foods Online

This is a really good read

This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article. Fertility Center New York

Thanks for the information. A

Thanks for the information. A very informative one I was looking for it. Keep up the good work and would like to hear more from you. Prada sunglasses

rosetta stone

I really like the style of your writing.rosetta stone spanish, I found your blog on bing and decided to check out.rosetta stone, I want to say very thank you for this great informations. now i understand about it. Thank you ! rosetta stone sale, discount rosetta stone, rosetta stone software, rosetta stone french. rosetta stone language. rosetta stone german. buy rosetta stone
nike22

Well, the post is actually

Well, the post is actually the freshest on this valuable topic. I concur with your conclusions and will thirstily look forward to your approaching updates. Saying thanks will not just be enough, for the tremendous lucidity in your writing. I will right away grab your rss feed to stay abreast of any updates. Gratifying work and much success in your business endeavors! Cheap Auto Insurance
Jibran Ayub

MBT, MBT Shoes, 60%

MBT, MBT Shoes, 60% OFF,Factory Direct ,Top Quality. mbt shoes clearance for masai barefoot technology, which are a series of MBT shoes. wearing a pair of MBT shoes will make you have a unique experience of walking.MBT is the anti-thesis of a shoe---The anti-shoe. coach factory outlet can activate your muscles instead of uderming them; coach handbag knockoff has a positive effect on the entire body on just the feet; MBT shoes discontinued is unstable, not stable; its sole is curved, not flat.MBT shoes sale promotion has been launched on our web. welcome to place an order of a pair of healthy shoes. Cheap juicy couture handbags sale,Free Shipping, No Tax, Fast Delivery.

nothing is impossible.

Thanks for your sharing, good job! Are you interested in the gucci jeans series? Topguccishoes.com will be the right place that you have come to. There are many different kinds products of gucci outlet for your selection, including gucci handbags, gucci sneakers which content with gucci men shoes, Gucci Trousers, Gucci Skirt, gucci bikini , gucci belts, Gucci Spicy Underwear, Gucci Wallets, Gucci Jewelry, gucci hats, gucci sunglasses and Women Gucci boots line. Welcome to the discount gucci handbags and buy discount gucci shoes with the best quality at affordable price.

This is nice post which I was

This is nice post which I was awaiting for such an artice and I have gained some useful information from this site. Thanks for sharing this information.. charterferieblog

Keep up the good

Keep up the good work. undergraduate certificate | degrees

Thanks for sharing this. high

For most couples who are

For most couples who are planning their wedding, prom dressespaying particular attention to the wedding flowers is just as essential as choosing the design of the wedding attire for both groom and bride. affordable bridesmaid dressesAfter all, flowers lit up the wedding venue, enhance the bride's looks and brighten up every table during the wedding reception. hair extensionsFlowers are also included in the wedding tradition of "throwing the bouquet" which through time has been known to give everyone an idea who the next bride is going to be. When couples choose what kind of flowers they will use for their wedding day, the usual choice is the orchid. wedding invitationsSince orchids come in different colors and varieties,cheap prom dresses they can very well match the motif that is chosen for the bridal gown and the wedding venue decorations. Orchid blooms that are used to decorate the church as well as the reception area provide that elegance that is most welcome during this occasion. hair extensionIt seems to tell everyone that love is in the air, as the newly married couple celebrates their vows in front of their family and friends.wedding hairstyles

how awful

2010 new styles A-line Wedding Dresses,Beach Wedding Dresses,Evening Dresses,Prom Dresses on sale evening dresses Prom dresses wedding dresses on best wedding dresses for 2009 and 2010. You can find latest collection of woman's dresses and casual dresses on this site discount Prom dresses discount wedding dresses a series of discount Wedding Dresses, Including Wedding gowns, Evening gowns, Wedding Dress, Bridal gowns and Bridal Dress wedding dresses prom dresses Look more beautiful than you've ever imagined in top designer dresses

We have the latest coach bags

We have the latest coach bags Kristin collection sale at online. The coach outlet line is clean and effortless, it still as other handbags have high quality. The coach outlet store of the handbags are soft and elegant. Shades of coral, pink, ivory, and burnished amber this entire are makes us feel comfortable. Though made from simple leather, the handbags have many optimum dimension and appeal, as well as fresh flush blocking, embossed exotics, and rich glazed leather. This durable Kristin coach handbags coach outlet store online be assured of its durability and long life.

you

aperture in the dial displays omega watches a retrograding pointer that indicates whether the chronograph fake watches seconds hand is completing its first or its second audemars piguet 30-second revolution. The Breguet Type XXII omega 3880 ST chronograph naturally features a flyback function, allowing the fake rolex totaliser to be returned to zero and instantly restarted in breitling watches one and the same operation.The TAG Heuer 2010 replica watches Silverstone version is animated by with the legendary Chronomatic rolex Calibre 11, the first self-winding automatic chronograph

you

aperture in the dial displays omega watches a retrograding pointer that indicates whether the chronograph fake watches seconds hand is completing its first or its second audemars piguet 30-second revolution. The Breguet Type XXII omega 3880 ST chronograph naturally features a flyback function, allowing the fake rolex totaliser to be returned to zero and instantly restarted in breitling watches one and the same operation.The TAG Heuer 2010 replica watches Silverstone version is animated by with the legendary Chronomatic rolex Calibre 11, the first self-winding automatic chronograph

Hi Anusha, I have been

Hi Anusha,

I have been working with the CQRS pattern for a while, and hope I can help you with your question.

What I sense in your explanation is that you have multiple steps in your UI to do a single thing in your system.

In DDD, and even more so in CQRS, it is very important to see the Application perspective differently than your UI perspective. If it is 1 atomic operation for your application, you will have only 1 command. That command may be built up using several screens. In such case, you could use a command builder (builder pattern) and attach that to the user's session. When the command is completely built, send it to your command handler and deal with it the CQRS way.

In other words, a form submit does not have to be translated to a command one-to-one. You could perfectly have a wizard-like process to build up a single command.

Hope this helps.

hi

>how to dervie the sub coammand within the composite commands multiple actions ---> composite command ---> asyn domain Event.

If you can write unit tests

If you can write unit tests for the ViewModel without creating any UI i shal be very thankful to you

sticker printing | folder printing