<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Cairngorm Patterns: Batch Commands</title>
	<atom:link href="http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands</link>
	<description>The online journey of a technophile, by Steve Brownlee</description>
	<lastBuildDate>Mon, 30 Jan 2012 21:28:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Steve Brownlee</title>
		<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/comment-page-1#comment-65020</link>
		<dc:creator>Steve Brownlee</dc:creator>
		<pubDate>Thu, 19 Jan 2012 04:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=451#comment-65020</guid>
		<description>That&#039;s rather obvious, Denzo.</description>
		<content:encoded><![CDATA[<p>That&#8217;s rather obvious, Denzo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denzo</title>
		<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/comment-page-1#comment-65019</link>
		<dc:creator>Denzo</dc:creator>
		<pubDate>Thu, 19 Jan 2012 04:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=451#comment-65019</guid>
		<description>This will not work with asynchronous commands.</description>
		<content:encoded><![CDATA[<p>This will not work with asynchronous commands.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh V</title>
		<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/comment-page-1#comment-35562</link>
		<dc:creator>Rajesh V</dc:creator>
		<pubDate>Mon, 19 Apr 2010 21:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=451#comment-35562</guid>
		<description>Thanks for the prompt reply, Steve. I am not sure how I would be able to capture data returned by the command, executing currently, before passing it on to the next?</description>
		<content:encoded><![CDATA[<p>Thanks for the prompt reply, Steve. I am not sure how I would be able to capture data returned by the command, executing currently, before passing it on to the next?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Brownlee</title>
		<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/comment-page-1#comment-35560</link>
		<dc:creator>Steve Brownlee</dc:creator>
		<pubDate>Mon, 19 Apr 2010 19:27:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=451#comment-35560</guid>
		<description>Yes, you can chain the commands.  Create a ChainCommands class that takes an invoker (Event) as a constructor argument, and also an array of command classes.

Then create the following methods:
execute() - This starts the command execution process by calling executeCommand()
executeCommand() - Performs the execution of the each command in the array
executeNextCommand() - This increments the internal counter to keep track of which command you are executing, captures any data from the current execution, and then calls executeCommand() again, forming the loop.</description>
		<content:encoded><![CDATA[<p>Yes, you can chain the commands.  Create a ChainCommands class that takes an invoker (Event) as a constructor argument, and also an array of command classes.</p>
<p>Then create the following methods:<br />
execute() &#8211; This starts the command execution process by calling executeCommand()<br />
executeCommand() &#8211; Performs the execution of the each command in the array<br />
executeNextCommand() &#8211; This increments the internal counter to keep track of which command you are executing, captures any data from the current execution, and then calls executeCommand() again, forming the loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh V</title>
		<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/comment-page-1#comment-35559</link>
		<dc:creator>Rajesh V</dc:creator>
		<pubDate>Mon, 19 Apr 2010 19:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=451#comment-35559</guid>
		<description>Excellent article, Steve! I found it very useful. However, I had a question, a little tangential maybe. I have this scenario: I have several commands, each loading a set of table contents into an app from a SQLite DB. I want to batch these commands together during the app start. However, I need one or more of these commands to fire (not just execute, but provide information (respond immediately) to the next command through either result/fault). I was wondering how I could achieve that. I am using an async connection to the DB. Is it just that I use Sync connections or can something be done to listen to callbacks before executing the next command? 

Thanks!</description>
		<content:encoded><![CDATA[<p>Excellent article, Steve! I found it very useful. However, I had a question, a little tangential maybe. I have this scenario: I have several commands, each loading a set of table contents into an app from a SQLite DB. I want to batch these commands together during the app start. However, I need one or more of these commands to fire (not just execute, but provide information (respond immediately) to the next command through either result/fault). I was wondering how I could achieve that. I am using an async connection to the DB. Is it just that I use Sync connections or can something be done to listen to callbacks before executing the next command? </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amichai Lesser</title>
		<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/comment-page-1#comment-33818</link>
		<dc:creator>Amichai Lesser</dc:creator>
		<pubDate>Fri, 01 May 2009 16:58:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=451#comment-33818</guid>
		<description>Nice post.
In the following post http://www.awholenewweb.com/?p=51 I share an example in which I extended the events and commands to support Undo operations. I also needed to find a good way to avoid the N event files 1 for each data point in my model but I solved it by making the value object update its own properties. 
Your approach seems applicable for many other use cases, thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Nice post.<br />
In the following post <a href="http://www.awholenewweb.com/?p=51" rel="nofollow">http://www.awholenewweb.com/?p=51</a> I share an example in which I extended the events and commands to support Undo operations. I also needed to find a good way to avoid the N event files 1 for each data point in my model but I solved it by making the value object update its own properties.<br />
Your approach seems applicable for many other use cases, thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Brownlee</title>
		<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/comment-page-1#comment-33783</link>
		<dc:creator>Steve Brownlee</dc:creator>
		<pubDate>Fri, 24 Apr 2009 14:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=451#comment-33783</guid>
		<description>@Karl: Yes, I did not like the implementation of SequenceCommand because, imo, it broke the basic purpose of the Command pattern.  This keeps each Command independent and decoupled from any other logic in the system.</description>
		<content:encoded><![CDATA[<p>@Karl: Yes, I did not like the implementation of SequenceCommand because, imo, it broke the basic purpose of the Command pattern.  This keeps each Command independent and decoupled from any other logic in the system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Sigiscar</title>
		<link>http://www.fusioncube.net/index.php/cairngorm-patterns-batch-commands/comment-page-1#comment-33782</link>
		<dc:creator>Karl Sigiscar</dc:creator>
		<pubDate>Fri, 24 Apr 2009 14:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=451#comment-33782</guid>
		<description>Very useful indeed. I previously used SequenceCommand and nextEvent but this requires to do something special in each command.

Your approach seems to not require any modification to commands.</description>
		<content:encoded><![CDATA[<p>Very useful indeed. I previously used SequenceCommand and nextEvent but this requires to do something special in each command.</p>
<p>Your approach seems to not require any modification to commands.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

