This paper is an extension of a three-stage flowshop with a batch processor in the second stage and discrete processors in the first and the third stage studied by Ahmadi et al.[3].We consider two variants where the batch processor is located in the first and third stage respectively. The objective is to minimize the makespan. An efficient heuristic and a mathematical programming model for each case are presented. We prove some properties that identify a specific class of optimal schedule, and then use these properties in designing heuristics and the mathematical programming models. Computational experiences with the algorithms are also reported.