title: Design pattern for similar processing steps, but with slight variations
body: <p>What is a good design pattern to implement a feature, where processing of data is pretty similar, except for variations in may be few steps... I initially thought that Chain-Of-Responsibility may be suitable... but it doesn't feel like the right choice.. If I'd know the name of appropriate pattern, I'd search it on internet.. but I don't know what pattern to use here.. So please suggest one.</p>
  
  <p>To be clear with an example -</p>
  
  <p>Scenario 1
  Step 1
  Step 2
  Step 3
  Step 4</p>
  
  <p>Scenario 2
  Step 1
  Step A
  Step 3
  Step 4</p>
  
  <p>Would like to implement the feature in such a way that minimum code duplication is necessary.</p>
  
  <p>I do realize that something will have to chain the necessary steps together at the start, like a factory, based on the scenario.</p>