I have a Rhino ETL process that performs several sequential actions, the first of which is to go to a SQL Server database and retrieve some rows (i.e. the "extract" part of the overall process).
I want to make the EtlProcess
bomb out if there were no rows returned at this stage. How would I go about this? I've taken a stab at overriding OnFinishedProcessing()
but I can't see an obvious way to signal that the EtlProcess
should bomb out.
What I have so far:
protected override void OnFinishedProcessing(IOperation op)
{
var sqlExtractionOperation = op as SqlExtractionOperation;
if (sqlExtractionOperation != null)
{
if (sqlExtractionOperation.Statistics.OutputtedRows == 0)
{
//TODO: figure out how to make it stop here
}
}
base.OnFinishedProcessing(op);
}