Partially distributed coordination with Reo and constraint automata