# NOT RUN {
qual1 <-
CreateQualificationType(name="Worked for me before",
description="This qualification is for people who have worked for me before",
status = "Active",
keywords="Worked for me before")
# assign qualification to single worker
AssignQualification(qual1$QualificationTypeId, "A1RO9UJNWXMU65", value = "50")
# assign a new qualification (defined atomically)
AssignQualification(workers = "A1RO9UJNWXMU65",
name = "Worked for me before",
description = "This qualification is for people who have worked for me before",
status = "Active",
keywords = "Worked for me before")
# assign a qualification to a workers based upon their worker statistic
AssignQualification(qual1$QualificationTypeId,
workers="A1RO9UJNWXMU65",
conditional.statistic="NumberAssignmentsApproved",
conditional.comparator=">",
conditional.value="5",
conditional.period="LifeToDate",
set.statistic.as.value=TRUE)
DisposeQualificationType(qual1$QualificationTypeId)
# }
Run the code above in your browser using DataLab