def tasklogic(self):
        
        # e.g. This is the first step
        self.count += 1
        yield self.count
            
        # e.g. Second step
        self.count += 1
        yield self.count
            
        # e.g. Series of steps as an iteration
        while self.count < 7:
            yield self.count
            self.count += 1

        # e.g. Final step
        self.count += 1
        yield self.count
This implements the task's logic as a simple sequential function.
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/tests/test_Task.py/stepTask.tasklogic