A context-aware and workflow-based framework for pervasive environments

  • Bilgin AvenoğluEmail author
  • P. Erhan Eren
Original Research


Using currently available infrastructure in pervasive environments it is possible to provide intelligent mechanisms that offer people help and guidance for organizing their daily activities. In this study, a framework providing such capabilities is proposed. This framework allows users to model their daily activities in the form of workflows, which are adaptable at run-time according to context information collected in pervasive environments. A workflow engine is used for modelling and management of workflows, while a separate rule engine with complex event processing (CEP) capability is incorporated into the framework for enhancing workflow adaptation and execution. The adaptation model in the framework allows for the modelling of activities in a hierarchical manner, from high level abstract activities to more detailed ones. An event-driven architecture (EDA) is utilized for loosely coupled interaction between the workflow engine and the rule engine, allowing these engines and other context sources to exchange data among themselves. Moreover, the EDA allows incorporation of context information into the workflow models without modifying the workflow language. A level of automation higher than the level supported by workflows is proposed by processing events in pervasive environments using CEP. A prototype implementation is developed and the framework is evaluated with some real life examples that demonstrate its applicability.


Workflows Context-aware systems Pervasive computing Complex event processing Workflow adaptation Event-driven architecture 


  1. Abbasi AZ, Shaikh Z (2009) A conceptual framework for smart workflow management. In: Proceedings—2009 International Conference on Information Management and Engineering, ICIME 2009, pp 574–578Google Scholar
  2. Abbasi AZ, Ahsan MU, Shaikh ZA, Nasir Z (2010) CAWD: A tool for designing context-aware workflows. In: 2nd International conference on software engineering and data mining, SEDM 2010, pp 128–133Google Scholar
  3. Adams M, Ter Hofstede AHM, Edmond D, van der Aalst WMP (2006) Worklets: a service-oriented implementation of dynamic flexibility in workflows. Move Meaningful Internet Syst 2006 CoopIS DOA GADA ODBASE 4275:291–308. CrossRefGoogle Scholar
  4. Adams M, Ter Hofstede A, Russell N, van der Aalst WMP (2009) Dynamic and context-aware process adaptation. Handb Res Complex Dyn Process Manag Tech Adapt Turbul Environ 104–136.
  5. Altintas I, Berkley C, Jaeger E et al (2004) Kepler: an extensible system for design and execution of scientific workflows. In: Proceedings 16th international conference on scientific and statistical database management, 2004, pp 423–424Google Scholar
  6. Ardissono L, Furnari R, Goy A et al (2007) A framework for the management of context-aware workflow systems. In: Filipe J, Cordeiro J (eds) Web information systems and technologies. Barcelona, Spain, pp 80–87Google Scholar
  7. Avenoğlu B (2014) A context-aware and workflow-based framework for pervasive environments. Dissertation. Middle East Technical UniversityGoogle Scholar
  8. Baldauf M, Dustdar S, Rosenberg F (2007) A survey on context-aware systems. Int J Ad Hoc Ubiquitous Comput 2:263 277. CrossRefGoogle Scholar
  9. Bali M (2009) Drools JBoss Rules 5.0 developer’s guide. Packt, BirminghamGoogle Scholar
  10. Baumgrass A, Di Ciccio C, Dijkman R et al (2015) GET controller and UNICORN: Event-driven process execution and monitoring in logistics. In: CEUR Workshop Proceedings, pp 75–79Google Scholar
  11. Breitenbücher U, Hirmer P, Képes K et al (2015) A Situation-aware workflow modelling extension. In: Proceedings of the 17th international conference on information integration and web-based applications & services. ACM, New York, NY, USA, pp 64:1–64:7Google Scholar
  12. Cho Y, Choi J, Choi J (2007) A context-aware workflow system for a smart home. In: 2007 International Conference on Convergence Information Technology ICCIT. IEEE, pp 95–100Google Scholar
  13. Cho Y, Shin C, Park D et al (2010) A workflow service scenario based on uWDL for smart agriculture. In: 2010 5th international conference on embedded and multimedia computing. EMC-10—Proceedings, pp 1–4Google Scholar
  14. Esper Team and EsperTech Inc (2015) Esper reference. Accessed 20 Nov 2017
  15. Görg S, Bergmann R (2015) Social workflows—vision and potential study. Inf Syst 50:1–19. CrossRefGoogle Scholar
  16. Han J, Cho Y, Choi J (2005) Context-aware workflow language based on web services for ubiquitous computing. In: Computational science and its applications–ICCSA 2005. Springer, pp 1008–1017Google Scholar
  17. Han J, Cho Y, Kim E, Choi J (2006) A Ubiquitous workflow service framework. In: Computational science and its applications—ICCSA 2006. Springer, pp 30–39Google Scholar
  18. Hendler J, Tate A, Drummond M (1990) AI planning: systems and techniques. AI Mag 11:61–77. Google Scholar
  19. Herrmann K, Rothermel K, Kortuem G, Dulay N (2008) Adaptable pervasive flows—an emerging technology for pervasive adaptation. In: 2008s IEEE international conference on self-adaptive and self-organizing systems workshops. IEEE, Venice, pp 108–113Google Scholar
  20. Hirmer P, Wieland M, Schwarz H et al (2017) Situation recognition and handling based on executing situation templates and situation-aware workflows. Computing 99:163 181. MathSciNetCrossRefGoogle Scholar
  21. Hofstede A, ter, Clemens S, Adams M (2010) YAWL—technical manual. Accessed 28 Jun 2017
  22. Hsu H-J, Wu S-Y, Wang F-J (2010) A methodology to developing context-aware pervasive applications. In: 2010 Fifth IEEE international symposium on service oriented system engineering. IEEE, Nanjing, China, pp 206–213Google Scholar
  23. Jennings NR, Norman TJ, Faratin P (1998) ADEPT: an agent-based approach to business process management. SIGMOD Rec 27:32–39. CrossRefGoogle Scholar
  24. Kawsar F, Kortuem G, Altakrouri B (2010) Supporting interaction with the internet of things across objects, time and space. In: 2010 internet of things (IOT). IEEE, Tokyo, pp 1–8Google Scholar
  25. Kortuem G, Kawsar F, Altakrouri B (2010) Flow-driven ambient guidance. In: 2010 8th IEEE international conference on pervasive computing and communications workshops (PERCOM Workshops). IEEE, pp 796–799Google Scholar
  26. Latour ALD, Babaki B, Dries A et al (2017) Combining stochastic constraint optimization and probabilistic programming: from knowledge compilation to constraint solving. Lecture notes in computer science (including subseries lecture notes in artificial intelligence and lecture notes in bioinformatics), pp 495–511Google Scholar
  27. Luckham DC (2001) The power of events: an introduction to complex event processing in distributed enterprise systems. Addison-Wesley Longman, BostonGoogle Scholar
  28. Mahmoud QH (2004) Getting started with java message service (JMS). Accessed 28 June 2017
  29. Marrella A, Halapuu P, Mecella M, Sardina S (2015) SmartPM: an adaptive process management system for executing processes in cyber-physical domains? In: CEUR workshop proceedings, pp 115–119Google Scholar
  30. Michelson BM (2006) Event-driven architecture overview event-driven SOA is just part of the EDA story. Patricia Seybold Gr Elem Links. Google Scholar
  31. Minor M, Schmalen D, Weidlich J, Koldehoff A (2008) Introspection into an agile workflow engine for long-term processes—tool demonstration. In: Proceedings of the workshop on enabling technologies: infrastructure for collaborative enterprises, WETICE, pp 241–245Google Scholar
  32. Ordóñez A, Eraso L, Ordóñez H, Merchan L (2016) Comparing drools and ontology reasoning approaches for automated monitoring in telecommunication processes. Procedia Comput Sci 95:353–360CrossRefGoogle Scholar
  33. Orton JD, Weick KE (1990) Loosely coupled systems: a reconceptualization. Acad Manag Rev 15:203–223. CrossRefGoogle Scholar
  34. Ouyang C, van der Aalst WMP, Dumas M et al (2007) Service-oriented processes: an introduction to BPEL. In: Cardoso J (ed) Semantic web services: theory, tools, and applications. Information science reference. IGI Global, London, pp 155–190CrossRefGoogle Scholar
  35. Pryss R, Tiedeken J, Reichert M (2010) Managing Processes on mobile devices: the MARPLE approach. In: CAiSE’10 Demos. Hammamet, TunisiaGoogle Scholar
  36. Pryss R, Tiedeken J, Kreher U, Reichert M (2011) Towards flexible process support on mobile devices. LNBIP 72:150–165. Google Scholar
  37. Ranganathan A, McFaddin S (2004) Using workflows to coordinate Web services in pervasive computing environments. In: Proceedings—IEEE international conference on web services (2004). IEEE, pp 288–295Google Scholar
  38. Reichert M, Rinderle S, Dadam P (2003) ADEPT workflow management system flexible support for enterprise-wide business processes—tool presentation. In: Proc. 1st Int’l conf. on business process management (BPM’03). Springer, Eindhoven, pp 370–379CrossRefGoogle Scholar
  39. Russell N, ter Hofstede AHM (2009) Surmounting BPM challenges: the YAWL story. Comput Sci Res Dev 23:67–79. CrossRefGoogle Scholar
  40. Salatino M, Aliverti E (2012) jBPM5 developer guide. Packt, BirminghamGoogle Scholar
  41. Satyanarayanan M (2001) Pervasive computing: vision and challenges. IEEE Pers Commun 8:10–17. CrossRefGoogle Scholar
  42. Schonenberg MH, Mans RS, Russell NC et al (2008) Towards a taxonomy of process flexibility. In: CEUR Workshop Proceedings, pp 81–84Google Scholar
  43. Seiger R, Huber S, Schlegel T (2016) Toward an execution system for self-healing workflows in cyber-physical systems. Softw Syst Model 1–22.
  44. Snyder B, Bosanac D, Davies R (2011) ActiveMQ in action. Manning Publications Co., GreenwichGoogle Scholar
  45. Soylu A, de Causmaecker P, Desmet P (2009) Context and adaptivity in pervasive computing environments: Links with software engineering and ontological engineering. J Softw 4:992–1013. CrossRefGoogle Scholar
  46. Strang T, Linnhoff-Popien C (2004) A context modelling survey. In: Workshop on advanced context modelling, reasoning and management, UbiComp 2004—the sixth international conference on ubiquitous computing. pp 1–8Google Scholar
  47. Taylor H, Yochem A, Phillips L, Martinez F (2009) Event-driven architecture: how SOA enables the real-time enterprise, 1st edn. Addison-Wesley Professional, BostonGoogle Scholar
  48. The JBoss jBPM Team (2014) jBPM documentation. Accessed 28 June 2017
  49. The YAWL Foundation (2011) YAWLUser Manual Version 2.2. In: YAWL found. Accessed 28 June 2017
  50. Tuysuz G, Avenoglu B, Eren PE (2013) A workflow-based mobile guidance framework for managing personal activities. In: 2013 Seventh international conference on next generation mobile apps, services and technologies. IEEE, pp 13–18Google Scholar
  51. Unger T, Eberle H, Leymann F (2010a) Research challenges on person-centric flows. In: Gierds C, Sürmeli J (eds) Proceedings of the 2nd Central European Workshop on Services and their Composition ZEUS 2010 Berlin Germany February 2526 2010., pp 97–104Google Scholar
  52. Unger T, Eberle H, Marconi A, Sirbu A (2010b) Declarative language for goals, constraints, adaptation and evolution. Accessed 28 June 2017
  53. van Hoof J (2006) How EDA extends SOA and why it is important. Accessed 24 June 2017
  54. Van Hille P, Jacques J, Taillard J et al (2012) Comparing Drools and ontology reasoning approaches for telecardiology decision support. Stud Health Technol Inf:300–304Google Scholar
  55. van der Aalst WMP (2013) Business process management: a comprehensive survey. ISRN Softw Eng 2013:1–37. CrossRefGoogle Scholar
  56. van der Aalst W, Stahl C (2011) Modelling business processes: a petri net-oriented approach. MIT, CambridgeCrossRefzbMATHGoogle Scholar
  57. van der Aalst W, van Hee K (2004) Workflow management: models, methods, and systems. MIT, CambridgeGoogle Scholar
  58. van der Aalst WMP, Weijters AJMM. (2004) Process mining: a research agenda. Comput Ind 53:231–244. CrossRefGoogle Scholar
  59. van der Aalst WMP, Ter Hofstede AHM, Kiepuszewski B, Barros AP (2003) Workflow patterns. Distrib Parall Databases 14:5–51. CrossRefGoogle Scholar
  60. van der Aalst WMP, Aldred L, Dumas M, Ter Hofstede AHM (2004) Design and implementation of the YAWL System. Proc 16th Int Conf Adv Inf Syst Eng CAiSE04 3084:281–305Google Scholar
  61. van der Aalst WMP, Dumas M, ter Hofstede AHM et al (2005) Life after BPEL? In: Bravetti M, Kloul L, Zavattaro G (eds) Formal techniques for computer systems and business processes: european performance engineering workshop, EPEW 2005 and international workshop on web services and formal methods, WS-FM 2005, Versailles, France, September 1–3, 2005. Proceedings. Springer Berlin Heidelberg, Berlin, Heidelberg, pp 35–50Google Scholar
  62. Van Der Aalst WMP, Adams M, Ter Hofstede AHM et al (2009a) Flexibility as a service. Lecture notes in computer science (including subseries lecture notes in artificial intelligence and lecture notes in bioinformatics), pp 319–333Google Scholar
  63. Van Der Aalst WMP, Pesic M, Schonenberg H (2009b) Declarative workflows: balancing between flexibility and support. Comput Sci Res Dev 23:99–113. CrossRefGoogle Scholar
  64. Vigneras P (2008) InfoQ: why BPEL is not the holy grail for BPM. Accessed 28 Jun 2017
  65. Vincent P (2007) Differences between a BRE and a rule-driven CEP engine (Part 1)|The TIBCO Blog. Accessed 28 Sep 2017
  66. Vishnuvardhan N (2015) CEP vs rule engine—why, how, what? Accessed 20 Nov 2017
  67. Wieland M, Kopp O, Nicklas D, Leymann F (2007) Towards context-aware workflows. In: Pernici B, Gulla JA (eds) CAiSE07 proc of the workshops and doctoral consortium. Citeseer, pp 1–15Google Scholar
  68. Wieland M, Kaczmarczyk P, Nicklas D (2008) Context Integration for smart workflows. In: 6th IEEE international conference on pervasive computing and communications PerCom (2008), pp 239–242Google Scholar
  69. Wolf H, Herrmann K, Rothermel K (2009) Modelling dynamic context awareness for situated workflows. Lect Notes Comput Sci (including Subser Lect Notes Artif Intell Lect Notes Bioinformatics) 5872:98–107Google Scholar
  70. Zugal S, Soffer P, Haisjackl C et al (2013) Investigating expressiveness and understandability of hierarchy in declarative business process models. Softw Syst Model 14:1081–1103. CrossRefGoogle Scholar

Copyright information

© Springer-Verlag GmbH Germany, part of Springer Nature 2017

Authors and Affiliations

  1. 1.Faculty of EngineeringTED UniversityAnkaraTurkey
  2. 2.Informatics InstituteMiddle East Technical UniversityAnkaraTurkey

Personalised recommendations