A Framework for the Modular Design and Implementation of Process-Aware Applications