Very nice article on where the software industry is heading with business process modelling. Frames it very clearly.
To build a code generator, it would need to integrate with these business processing languages but would probably best tackle the area of user tasks first.
A less visible battle is happening in parallel at the level of user "tasks". The process-oriented logic can be divided in two broad categories: a) tasks, which represent the interactions between a user and a given unit of work and b) business processes, which represent the compositions of tasks, systems interactions and B2B transactions.