1. A method for handling events in compositional applications represented as processing graphs, comprising: receiving an event notification; modifying a planning domain according to the event notification; generating a new processing graph for a previously deployed processing graph by using the modified planning domain; determining if the new processing graph is different than the previously deployed processing graph; and if the processing graphs are different: reconfiguring the previously deployed processing graph to match the new processing graph; or deploying the new processing graph and replacing the previously deployed processing graph with the newly deployed processing graph.