RSDCohortAssignmentStep

public protocol RSDCohortAssignmentStep : RSDStep

RSDCohortAssignmentStep evaluates a task result and returns the cohorts to apply for a given result.

  • Evaluate the task result and return the set of cohorts to add and remove.

    Declaration

    Swift

    func cohortsToApply(with result: RSDTaskResult) -> (add: Set<String>, remove: Set<String>)?

    Parameters

    result

    The task result to evaluate.

    Return Value

    The cohorts to add/remove or nil if no rules apply.