1 Reply Latest reply on Nov 27, 2006 2:37 PM by codesapien

    Cairngorm SequenceCommand best practice


      I have an issue with deciding the most elegant solution while using the SequenceCommand class that uses an existing delegate to invoke a web service. I have a sequence command class, say GetAandBSequenceCommand. It implements IResponder and calls ADelegate.getAs() which invokes a web service; the GetAandBSequenceCommand waits for the results and needs to parse the results (problem here!)

      The problem is that I already have a GetACommand class with the parsing logic in it, but the logic is not exposed externally. So, should I encapsulate the parsing logic into a public method of the GetACommand class, or should I create a Utility Class for the parsing logic? What should I do to prevent duplicating that parsing logic in my SequenceCommand class?

      Bruce Leggett