1. A method comprising: creating a context object for an activity, wherein the activity defines a set of processes; mapping the context object to a service class; generating a weight and a priority to the service class; executing a set of processes associated with the activity based on the weight and the priority of the service class; and simultaneously allocating a set of resources at all nodes in a system based on the weight and the priority of the service class.