public DecisionFlowStep <TSwitch, TFlowRequest, TFlowResponse> Check <TReq, TSwitch>(string stepName, string stepText, FlowOverrideKey flowOverrideKey, FlowDecisionDefinition <TReq, TSwitch> definition) where TReq : FlowDecision <TSwitch> { var decisionFlowStep = new DecisionFlowStep <TSwitch, TFlowRequest, TFlowResponse>(this) { Name = stepName, Definition = definition, Text = stepText, OverrideKey = flowOverrideKey }; AddStep(decisionFlowStep); return(decisionFlowStep); }
public DecisionFlowStepCriteria(DecisionFlowStep <T, TFlowRequest, TFlowResponse> flowStep, IList <Branch> branches, IEnumerable <object> criteria) { _flowStep = flowStep; _branches = branches; _criteria = criteria; }