blob: d73b4f08d15e82aefc74fa833176e293a8d3e3fc [file] [log] [blame]
// Find pairs of people that work
// on at least one common task
pattern Collaborators
p1, p2 : Person {
match: Task.all.exists(t|t.effort.person.
includesAll(Sequence{p1, p2}))
}
// Pair tasks with their leaders
pattern TaskLeader
t : Task,
p : Person from: t.effort.person {
match: t.effort.sortBy(e|-e.percentage).
first()?.person = p
}