Which Design pattern should i use for loop over steps

I am to run certain number of statements (which are executing .exe) in a loop.

ForEach(object obj in ListOfVersions)
  Step 1: call Exe1 Args=obj.somevalues
  Log Step 1 completed for obj

  Step 2: call Exe2 Args=obj.somevalues
  Log Step 2 completed for obj

  Step 3: call Exe3 Args=obj.somevalues
  Log step 3 completed for obj

Step 4: call Exe4

Is there any specific design pattern available to use for above situation.


Every Exe different and is performing different operation with different parameters.


This would be a good candidate for command pattern.

Need Your Help

Listen to MouseEvents on certain text in a JLabel

java swing hyperlink mouseevent jlabel

I have a JLabel with <html> tag containing an hyperlink, which I want to attach a MouseAdapter to.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.