We have an abstract workflow class that is called ApprovalWorkflow the thing is it can hold both a开发者_开发问答n approve, reject and input state. Its slightly misleading to call it ApprovalWorkflow but I cant be sure of what the right term is.
Does anyone know of a better term to call ApprovalWorkflow as it can Authorize and Reject?
I don't see a problem. Authorization can have two outcomes, Authorized and NotAuthorized = Rejected. That's the entire point of it, in fact.
I'm more worried about the input state part. That sounds like {True, False, FileNotFound}
精彩评论