Collective Adaptation in Process-based Systems