Control of Semi-Continuous Processes by Mass Resampling