Sample-Batch icon indicating copy to clipboard operation
Sample-Batch copied to clipboard

Remove switch statement for ProcessJobConsumer

Open shahabganji opened this issue 4 years ago • 0 comments

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.

shahabganji avatar Jul 15 '20 19:07 shahabganji