Sample-Batch
Sample-Batch copied to clipboard
Remove switch statement for ProcessJobConsumer
Dear @phatboyg
I was reading this sample and saw the following:
Not too sure how I feel about the enum indicating what batch action to take, and then the switch statement in the ProcessJobConsumer where it conditionally creates the routing slip activity. Is there a more elegant way? I'll need to think about that.
Based on what I read here and here. I used the SmartEnum library to tackle this problem.
I am not sure whether I changed it in an elegant way or not, so please let me know your opinion.
Thanks.