Abstract. This study proposes a methodology that allows the flexible and maintainable development of application based on mobile agent to a ubiquitous environment. Ubiquitous environment is to support people's movement in an inconspicuous and unobtrusive way while they are executing applications. This requires the various kinds of concerns to be written in application code, which makes the application code monolithic. A monolithic code reduces its flexibility and maintainance faculty. Coding techniques to improve the efficiency and testing makes the matter worse. This paper introduce a Worklfow-awareness model based on agent pairing which makes it possible to tune up a performance of the application without disorganizing the application logic. AspectJ is used to combine the non-application logics specific to a deployed environment.