This paper presents a model driven approach for the generation of business process driven web applications within the context of ubiquitous environments. For this reason, we have taken into account that the generated Web applications can be accessed via different devices (such as PDAs), which introduce a set of constraints that are better faced at the modeling process. This proposal relies on both model-to-model and model-to-text transformation techniques to obtain the final software artifact. As a result, we have implemented an Eclipse based prototype that generates from a business process definition the adequate GUI (in terms of the device) to execute the process as well as the equivalent definition into an executable language such as WS-BPEL.