SwitchPipeline
A template pipeline for implementing control flow with switch-case logic